Debian Codegraph @

src/mosaic.cpp

raw symbols SCIP
1 /***************************************************************************
2 mosaic.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 "mosaic.h"
19
20 Mosaic::Mosaic(Image * image):Background(){
21 this->image=image;
22 image->setAlpha(OPAQUE);
23 }
24
25 Mosaic::~Mosaic(){
26 //delete image;
27 }
28
29 void Mosaic::repaint(VideoManager * vm, int x, int y, int w, int h){
30 vm->blit(image, this->x+x, this->y+y);
31 }
32
33 void Mosaic::paint(VideoManager * vm){
34 int i,j;
35 for (i=0;i<BoardColumns;i++)
36 for (j=0;j<BoardRows;j++)
37 vm->blit(image, i*PipeWidth+x, j*PipeHeight+y);
38 }
39