diff options
author | Michele Calgaro <[email protected]> | 2023-12-03 00:48:17 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-05 11:40:17 +0900 |
commit | 76f734a8102bfc590570e67a73c40351ea2bbf3f (patch) | |
tree | a32a5d5c0b7491daa8d37f68bb878137e492bcfd /ksame/StoneWidget.cpp | |
parent | 03c3d2268077e447b3a6315871c513ec91664361 (diff) | |
download | tdegames-76f734a8102bfc590570e67a73c40351ea2bbf3f.tar.gz tdegames-76f734a8102bfc590570e67a73c40351ea2bbf3f.zip |
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 2d872f6fb68350f9ee5b0b5c86ab3240b0d09aae)
Diffstat (limited to 'ksame/StoneWidget.cpp')
-rw-r--r-- | ksame/StoneWidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ksame/StoneWidget.cpp b/ksame/StoneWidget.cpp index c4fbb987..5097ac78 100644 --- a/ksame/StoneWidget.cpp +++ b/ksame/StoneWidget.cpp @@ -72,8 +72,8 @@ StoneWidget::StoneWidget( TQWidget *parent, int x, int y ) for (int s = 0; s < maxslices; s++) { map[c][s].stone.resize(stone_width, stone_height); assert(!map[c][s].stone.isNull()); - bitBlt(TQT_TQPAINTDEVICE(&map[c][s].stone), 0, 0, - TQT_TQPAINTDEVICE(&stonemap), stone_width * s, + bitBlt(&map[c][s].stone, 0, 0, + &stonemap, stone_width * s, c*stone_height, stone_width,stone_height,CopyROP,false); TQImage im = map[c][s].stone.convertToImage(); @@ -276,8 +276,8 @@ StoneWidget::paintEvent( TQPaintEvent *e ) { if (stone->color) { int tslice = stone->marked?slice:0; - bitBlt(TQT_TQPAINTDEVICE(this),cx,cy, - TQT_TQPAINTDEVICE(&map[stone->color-1][tslice].stone), + bitBlt(this,cx,cy, + &map[stone->color-1][tslice].stone, 0, 0, stone_width,stone_height,CopyROP,FALSE); |