summaryrefslogtreecommitdiffstats
path: root/ksnake/pixServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksnake/pixServer.cpp')
-rw-r--r--ksnake/pixServer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ksnake/pixServer.cpp b/ksnake/pixServer.cpp
index ac25f9be..c27e554f 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(&compuSnakePix[x] ,0,0, &pm,x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, Qt::CopyROP, true);
+ bitBlt(TQT_TQPAINTDEVICE(&compuSnakePix[x]) ,0,0, TQT_TQPAINTDEVICE(&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(&samyPix[x] ,0,0, &pm,x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, Qt::CopyROP, true);
+ bitBlt(TQT_TQPAINTDEVICE(&samyPix[x]) ,0,0, TQT_TQPAINTDEVICE(&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(&ballPix[x] ,0,0, &pm,x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, Qt::CopyROP, true);
+ bitBlt(TQT_TQPAINTDEVICE(&ballPix[x]) ,0,0, TQT_TQPAINTDEVICE(&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(&applePix[x] ,0,0, &pm,x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, Qt::CopyROP, true);
+ bitBlt(TQT_TQPAINTDEVICE(&applePix[x]) ,0,0, TQT_TQPAINTDEVICE(&pm),x*BRICKSIZE, 0, BRICKSIZE, BRICKSIZE, TQt::CopyROP, true);
applePix[x].setMask(applePix[x].createHeuristicMask());
}
}
@@ -181,7 +181,7 @@ void PixServer::initBrickPixmap()
{
TQPixmap pm = TQPixmap(locate("appdata", "pics/brick.png"));
if (pm.isNull()) {
- kdFatal() << i18n("error loading %1, aborting\n").arg("brick.png");
+ kdFatal() << i18n("error loading %1, aborting\n").tqarg("brick.png");
}
int pw = pm.width();
int ph = pm.height();
@@ -216,7 +216,7 @@ void PixServer::drawBrick(TQPainter *p ,int i)
TQColor light(180,180,180);
TQColor dark(100,100,100);
- int topSq = board->getNext(N, i); //find 'address' of neighbouring squares
+ int topSq = board->getNext(N, i); //tqfind 'address' of neighbouring squares
int botSq = board->getNext(S, i);
int rightSq = board->getNext(E ,i);
int leftSq = board->getNext(W, i);