Codebase list pipenightdreams / 153c8266-734e-4afd-ac87-24ffdcd1c46e/main src / wallpaper.cpp
153c8266-734e-4afd-ac87-24ffdcd1c46e/main

Tree @153c8266-734e-4afd-ac87-24ffdcd1c46e/main (Download .tar.gz)

wallpaper.cpp @153c8266-734e-4afd-ac87-24ffdcd1c46e/mainraw · history · blame

/***************************************************************************
                          wallpaper.cpp  -  description
                             -------------------
    begin                : Wed Mar 21 2001
    copyright            : (C) 2001 by Waldemar Baraldi
    email                : baraldi@lacasilla.com.ar
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include "wallpaper.h"

WallPaper::WallPaper(Image * image):Background(){
  this->image=image;
  image->setAlpha(OPAQUE);
}

WallPaper::~WallPaper(){
  //delete image;
}

void WallPaper::repaint(VideoManager * vm, int x, int y, int w, int h){
    /** Pinta el rectangulo (rx,ry,rw,rh) de la surface s
        en la posicion (x,y)*/
  vm->blit(image, this->x+x, this->y+y, x, y, w, h);
}

void WallPaper::paint(VideoManager * vm){
  vm->blit(image, x, y);
}