diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
commit | 838baf3f99ec5ab81b063eb5449a3381d860f377 (patch) | |
tree | dd31abcfde08ca92e4623b8f50b3d762a87c997a /ksokoban/ImageData.cpp | |
parent | 2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff) | |
download | tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip |
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksokoban/ImageData.cpp')
-rw-r--r-- | ksokoban/ImageData.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ksokoban/ImageData.cpp b/ksokoban/ImageData.cpp index c34ece36..76fd0f2b 100644 --- a/ksokoban/ImageData.cpp +++ b/ksokoban/ImageData.cpp @@ -144,10 +144,10 @@ ImageData::brighten(TQImage& img) { for (int y=0; y<img.height(); y++) { for (int x=0; x<img.width(); x++) { - QRgb rgb = img.pixel(x, y); - int r = qRed(rgb); - int g = qGreen(rgb); - int b = qBlue(rgb); + TQRgb rgb = img.pixel(x, y); + int r = tqRed(rgb); + int g = tqGreen(rgb); + int b = tqBlue(rgb); if (r > g && r > b) { // only modify redish pixels @@ -163,10 +163,10 @@ ImageData::brighten(TQImage& img) { void ImageData::wall(TQPainter &p, int x, int y, int index, bool left, bool right) { - if (left) p.drawPixmap(x, y, upperLarge(index-1), halfSize_); + if (left) p.tqdrawPixmap(x, y, upperLarge(index-1), halfSize_); else p.drawPixmap(x, y, leftSmall(index)); - if (right) p.drawPixmap(x+halfSize_, y, upperLarge(index), 0, 0, halfSize_); + if (right) p.tqdrawPixmap(x+halfSize_, y, upperLarge(index), 0, 0, halfSize_); else p.drawPixmap(x+halfSize_, y, rightSmall(index)); p.drawPixmap(x, y+halfSize_, lowerLarge(index)); |