diff options
Diffstat (limited to 'kmahjongg/Background.cpp')
-rw-r--r-- | kmahjongg/Background.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kmahjongg/Background.cpp b/kmahjongg/Background.cpp index 432ae5fb..2cf7296f 100644 --- a/kmahjongg/Background.cpp +++ b/kmahjongg/Background.cpp @@ -78,8 +78,8 @@ void Background::sourceToBackground() { if (tile) { // copy new to background wrapping on w and height for (int y=0; y<backgroundImage->height(); y++) { - QRgb *dest = (QRgb *) backgroundImage->scanLine(y); - QRgb *src = (QRgb *) sourceImage->scanLine(y % sourceImage->height()); + TQRgb *dest = (TQRgb *) backgroundImage->scanLine(y); + TQRgb *src = (TQRgb *) sourceImage->scanLine(y % sourceImage->height()); for (int x=0; x< backgroundImage->width(); x++) { *dest = *(src + (x % sourceImage->width())); dest++; @@ -99,8 +99,8 @@ void Background::sourceToBackground() { TQImage tmp; tmp.create(backgroundImage->width(), backgroundImage->height(), 32); for (int ys=0; ys < tmp.height(); ys++) { - QRgb *src = (QRgb *) backgroundImage->scanLine(ys); - QRgb *dst = (QRgb *) tmp.scanLine(ys); + TQRgb *src = (TQRgb *) backgroundImage->scanLine(ys); + TQRgb *dst = (TQRgb *) tmp.scanLine(ys); for (int xs=0; xs < tmp.width(); xs++) { *dst=TQColor(*src).dark(133).rgb(); src++; |