summaryrefslogtreecommitdiffstats
path: root/ksokoban/ImageData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksokoban/ImageData.cpp')
-rw-r--r--ksokoban/ImageData.cpp12
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));