| 1 | /*************************************************************************** |
| 2 | wallpaper.cpp - description |
| 3 | ------------------- |
| 4 | begin : Wed Mar 21 2001 |
| 5 | copyright : (C) 2001 by Waldemar Baraldi |
| 6 | email : [email protected] |
| 7 | ***************************************************************************/ |
| 8 | |
| 9 | /*************************************************************************** |
| 10 | * * |
| 11 | * This program is free software; you can redistribute it and/or modify * |
| 12 | * it under the terms of the GNU General Public License as published by * |
| 13 | * the Free Software Foundation; either version 2 of the License, or * |
| 14 | * (at your option) any later version. * |
| 15 | * * |
| 16 | ***************************************************************************/ |
| 17 | |
| 18 | #include "wallpaper.h" |
| 19 | |
| 20 | WallPaper::WallPaper(Image * image):Background(){ |
| 21 | this->image=image; |
| 22 | image->setAlpha(OPAQUE); |
| 23 | } |
| 24 | |
| 25 | WallPaper::~WallPaper(){ |
| 26 | //delete image; |
| 27 | } |
| 28 | |
| 29 | void WallPaper::repaint(VideoManager * vm, int x, int y, int w, int h){ |
| 30 | /** Pinta el rectangulo (rx,ry,rw,rh) de la surface s |
| 31 | en la posicion (x,y)*/ |
| 32 | vm->blit(image, this->x+x, this->y+y, x, y, w, h); |
| 33 | } |
| 34 | |
| 35 | void WallPaper::paint(VideoManager * vm){ |
| 36 | vm->blit(image, x, y); |
| 37 | } |
| 38 | |
| 39 |