summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-03-13 01:21:41 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-03-13 01:25:27 +0100
commitfc418e1833e51fd8d9fdbb1383efa09650daded3 (patch)
tree80fe44507e05d6de66ec9c11290613faf3a6de46
parent342d52d55e2c1a80123258bf58cc872aa35de3e6 (diff)
downloadtdegames-fc418e1833e51fd8d9fdbb1383efa09650daded3.tar.gz
tdegames-fc418e1833e51fd8d9fdbb1383efa09650daded3.zip
Fix pixmap handling in KMines
This resolves Bug 1416 (cherry picked from commit 063e2351a3b0b09b483a4cc7755fdd70160ac3c0)
-rw-r--r--kmines/frame.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/kmines/frame.cpp b/kmines/frame.cpp
index 91cca53e..3788dee5 100644
--- a/kmines/frame.cpp
+++ b/kmines/frame.cpp
@@ -41,14 +41,12 @@ void FieldFrame::adjustSize()
TQBitmap mask;
for (uint i=0; i<Nb_Pixmap_Types; i++) {
- TQPixmap mask_pm = mask;
- drawPixmap(mask_pm, (PixmapType)i, true);
+ drawPixmap(mask, (PixmapType)i, true);
drawPixmap(_pixmaps[i], (PixmapType)i, false);
_pixmaps[i].setMask(mask);
}
for (uint i=0; i<Nb_Advised; i++) {
- TQPixmap mask_pm = mask;
- drawAdvised(mask_pm, i, true);
+ drawAdvised(mask, i, true);
drawAdvised(_advised[i], i, false);
_advised[i].setMask(mask);
}