summaryrefslogtreecommitdiffstats
path: root/ksmiletris/gamewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksmiletris/gamewidget.cpp')
-rw-r--r--ksmiletris/gamewidget.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ksmiletris/gamewidget.cpp b/ksmiletris/gamewidget.cpp
index b0cc3316..04d5e543 100644
--- a/ksmiletris/gamewidget.cpp
+++ b/ksmiletris/gamewidget.cpp
@@ -206,9 +206,9 @@ void GameWidget::newGame()
void GameWidget::repaintChilds()
{
- screen->repaint(false);
- mirror->repaint(false);
- next->repaint(false);
+ screen->tqrepaint(false);
+ mirror->tqrepaint(false);
+ next->tqrepaint(false);
}
void GameWidget::putPiece()
@@ -218,7 +218,7 @@ void GameWidget::putPiece()
if (piece[2] != bg_sprite) ref(xpos + 0, ypos + 1) = piece[2];
if (piece[3] != bg_sprite) ref(xpos + 1, ypos + 1) = piece[3];
updateMirror();
- screen->repaint(false);
+ screen->tqrepaint(false);
}
void GameWidget::getPiece()
@@ -241,7 +241,7 @@ void GameWidget::newPiece()
next_piece[i] = (Sprite)(Sprite_Block1 + random.getLong(num_pieces_level));
else
next_piece[i] = bg_sprite;
- next->repaint(false);
+ next->tqrepaint(false);
}
void GameWidget::nextPiece()
@@ -272,7 +272,7 @@ void GameWidget::updateMirror()
mirror_sprites[x] = bg_sprite;
mirror_sprites[xpos] = piece[2] == bg_sprite ? piece[0] : piece[2];
mirror_sprites[xpos+1] = piece[3] == bg_sprite ? piece[1] : piece[3];
- mirror->repaint(false);
+ mirror->tqrepaint(false);
}
void GameWidget::keyUp()
@@ -390,7 +390,7 @@ void GameWidget::broke(int x, int y, bool *xmap)
emit changedStats(num_level, num_points);
#ifdef HAVE_USLEEP
- screen->repaint(false);
+ screen->tqrepaint(false);
usleep(75 * 1000);
#endif
}