diff options
Diffstat (limited to 'ksame/StoneWidget.cpp')
-rw-r--r-- | ksame/StoneWidget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ksame/StoneWidget.cpp b/ksame/StoneWidget.cpp index 3109c33e..586aeefd 100644 --- a/ksame/StoneWidget.cpp +++ b/ksame/StoneWidget.cpp @@ -46,8 +46,8 @@ struct StoneSlice { }; -StoneWidget::StoneWidget( TQWidget *tqparent, int x, int y ) - : TQWidget(tqparent,"StoneWidget"), stonefield(x,y) +StoneWidget::StoneWidget( TQWidget *parent, int x, int y ) + : TQWidget(parent,"StoneWidget"), stonefield(x,y) { setBackgroundPixmap(TQPixmap(locate("wallpaper", "Time-For-Lunch-2.jpg"))); TQPixmap stonemap(locate("appdata", "stones.png")); @@ -65,7 +65,7 @@ StoneWidget::StoneWidget( TQWidget *tqparent, int x, int y ) stone_height=stonemap.height()/maxcolors; map = new StoneSlice*[maxcolors]; - TQBitmap tqmask; + TQBitmap mask; for (int c = 0; c < maxcolors; c++) { map[c] = new StoneSlice[maxslices]; @@ -77,8 +77,8 @@ StoneWidget::StoneWidget( TQWidget *tqparent, int x, int y ) c*stone_height, stone_width,stone_height,CopyROP,false); TQImage im = map[c][s].stone.convertToImage(); - tqmask.convertFromImage(im.createHeuristicMask()); - map[c][s].stone.setMask(tqmask); + mask.convertFromImage(im.createHeuristicMask()); + map[c][s].stone.setMask(mask); } } |