diff options
Diffstat (limited to 'src/gui/general/PixmapFunctions.cpp')
-rw-r--r-- | src/gui/general/PixmapFunctions.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/general/PixmapFunctions.cpp b/src/gui/general/PixmapFunctions.cpp index 50dff1a..7bd8b2f 100644 --- a/src/gui/general/PixmapFunctions.cpp +++ b/src/gui/general/PixmapFunctions.cpp @@ -127,8 +127,8 @@ PixmapFunctions::colourPixmap(const TQPixmap &map, int hue, int minValue) TQPixmap rmap; rmap.convertFromImage(image); - if (map.tqmask()) - rmap.setMask(*map.tqmask()); + if (map.mask()) + rmap.setMask(*map.mask()); return rmap; } @@ -156,8 +156,8 @@ PixmapFunctions::shadePixmap(const TQPixmap &map) TQPixmap rmap; rmap.convertFromImage(image); - if (map.tqmask()) - rmap.setMask(*map.tqmask()); + if (map.mask()) + rmap.setMask(*map.mask()); return rmap; } @@ -168,8 +168,8 @@ PixmapFunctions::flipVertical(const TQPixmap &map) TQImage i(map.convertToImage()); rmap.convertFromImage(i.mirror(false, true)); - if (map.tqmask()) { - TQImage im(map.tqmask()->convertToImage()); + if (map.mask()) { + TQImage im(map.mask()->convertToImage()); TQBitmap newMask; newMask.convertFromImage(im.mirror(false, true)); rmap.setMask(newMask); @@ -185,8 +185,8 @@ PixmapFunctions::flipHorizontal(const TQPixmap &map) TQImage i(map.convertToImage()); rmap.convertFromImage(i.mirror(true, false)); - if (map.tqmask()) { - TQImage im(map.tqmask()->convertToImage()); + if (map.mask()) { + TQImage im(map.mask()->convertToImage()); TQBitmap newMask; newMask.convertFromImage(im.mirror(true, false)); rmap.setMask(newMask); @@ -211,7 +211,7 @@ PixmapFunctions::splitPixmap(const TQPixmap &pixmap, int x) paint.end(); paint.begin(&leftMask); - paint.drawPixmap(0, 0, *pixmap.tqmask(), 0, 0, left.width(), left.height()); + paint.drawPixmap(0, 0, *pixmap.mask(), 0, 0, left.width(), left.height()); paint.end(); left.setMask(leftMask); @@ -221,7 +221,7 @@ PixmapFunctions::splitPixmap(const TQPixmap &pixmap, int x) paint.end(); paint.begin(&rightMask); - paint.drawPixmap(0, 0, *pixmap.tqmask(), left.width(), 0, right.width(), right.height()); + paint.drawPixmap(0, 0, *pixmap.mask(), left.width(), 0, right.width(), right.height()); paint.end(); right.setMask(rightMask); @@ -237,7 +237,7 @@ PixmapFunctions::drawPixmapMasked(TQPixmap &dest, TQBitmap &destMask, TQImage idp(dest.convertToImage()); TQImage idm(destMask.convertToImage()); TQImage isp(src.convertToImage()); - TQImage ism(src.tqmask()->convertToImage()); + TQImage ism(src.mask()->convertToImage()); for (int y = 0; y < isp.height(); ++y) { for (int x = 0; x < isp.width(); ++x) { |