summaryrefslogtreecommitdiffstats
path: root/ksnake
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 00:48:17 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 23:32:33 +0900
commit2d872f6fb68350f9ee5b0b5c86ab3240b0d09aae (patch)
tree4b6680c122d01a94bbd0b50c449b282a8d73fa8a /ksnake
parent6022ab632c2ecf160a9f6f1fbb532506aeca3633 (diff)
downloadtdegames-2d872f6fb68350f9ee5b0b5c86ab3240b0d09aae.tar.gz
tdegames-2d872f6fb68350f9ee5b0b5c86ab3240b0d09aae.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ksnake')
-rw-r--r--ksnake/pixServer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ksnake/pixServer.cpp b/ksnake/pixServer.cpp
index b13bfa43..64299e0a 100644
--- a/ksnake/pixServer.cpp
+++ b/ksnake/pixServer.cpp
@@ -100,7 +100,7 @@ void PixServer::initPixmaps()
pm.convertFromImage(qi,TQPixmap::AvoidDither);
for (int x = 0 ; x < 18; x++){
compuSnakePix[x].resize(BRICKSIZE, BRICKSIZE);
- bitBlt(TQT_TQPAINTDEVICE(&compuSnakePix[x]) ,0,0, TQT_TQPAINTDEVICE(&pm),x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, TQt::CopyROP, true);
+ bitBlt(&compuSnakePix[x] ,0,0, &pm,x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, TQt::CopyROP, true);
compuSnakePix[x].setMask(compuSnakePix[x].createHeuristicMask());
}
@@ -110,7 +110,7 @@ void PixServer::initPixmaps()
pm.convertFromImage(qi,TQPixmap::AvoidDither);
for (int x = 0 ; x < 18; x++){
samyPix[x].resize(BRICKSIZE, BRICKSIZE);
- bitBlt(TQT_TQPAINTDEVICE(&samyPix[x]) ,0,0, TQT_TQPAINTDEVICE(&pm),x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, TQt::CopyROP, true);
+ bitBlt(&samyPix[x] ,0,0, &pm,x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, TQt::CopyROP, true);
samyPix[x].setMask(samyPix[x].createHeuristicMask());
}
@@ -120,7 +120,7 @@ void PixServer::initPixmaps()
pm.convertFromImage(qi,TQPixmap::AvoidDither);
for (int x = 0 ; x < 4; x++){
ballPix[x].resize(BRICKSIZE, BRICKSIZE);
- bitBlt(TQT_TQPAINTDEVICE(&ballPix[x]) ,0,0, TQT_TQPAINTDEVICE(&pm),x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, TQt::CopyROP, true);
+ bitBlt(&ballPix[x] ,0,0, &pm,x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, TQt::CopyROP, true);
ballPix[x].setMask(ballPix[x].createHeuristicMask());
}
@@ -130,7 +130,7 @@ void PixServer::initPixmaps()
pm.convertFromImage(qi,TQPixmap::AvoidDither);
for (int x = 0 ; x < 2; x++){
applePix[x].resize(BRICKSIZE, BRICKSIZE);
- bitBlt(TQT_TQPAINTDEVICE(&applePix[x]) ,0,0, TQT_TQPAINTDEVICE(&pm),x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, TQt::CopyROP, true);
+ bitBlt(&applePix[x] ,0,0, &pm,x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, TQt::CopyROP, true);
applePix[x].setMask(applePix[x].createHeuristicMask());
}
}