|
|
|
@ -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());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|