summaryrefslogtreecommitdiffstats
path: root/ksmiletris
diff options
context:
space:
mode:
Diffstat (limited to 'ksmiletris')
-rw-r--r--ksmiletris/gamewidget.cpp8
-rw-r--r--ksmiletris/gamewidget.h2
-rw-r--r--ksmiletris/gamewindow.cpp4
3 files changed, 7 insertions, 7 deletions
diff --git a/ksmiletris/gamewidget.cpp b/ksmiletris/gamewidget.cpp
index 3ba3051a..bf1e78ef 100644
--- a/ksmiletris/gamewidget.cpp
+++ b/ksmiletris/gamewidget.cpp
@@ -131,7 +131,7 @@ void GameWidget::setPieces(PiecesType type)
sprites[Sprite_Broken1 + i] = pm;
}
- if (in_game) tqrepaintChilds();
+ if (in_game) repaintChilds();
}
void GameWidget::loadSprites()
@@ -198,13 +198,13 @@ void GameWidget::newGame()
updateMirror();
in_game = true;
- tqrepaintChilds();
+ repaintChilds();
emit changedStats(num_level, num_points);
timer_interval = 700;
timer->start(timer_interval);
}
-void GameWidget::tqrepaintChilds()
+void GameWidget::repaintChilds()
{
screen->tqrepaint(false);
mirror->tqrepaint(false);
@@ -258,7 +258,7 @@ void GameWidget::nextPiece()
|| (piece[2] != bg_sprite && ref(xpos + 0, ypos + 1) != bg_sprite)
|| (piece[3] != bg_sprite && ref(xpos + 1, ypos + 1) != bg_sprite)) {
in_game = false;
- tqrepaintChilds();
+ repaintChilds();
KMessageBox::sorry(this, i18n("Game Over"));
emit gameOver();
}
diff --git a/ksmiletris/gamewidget.h b/ksmiletris/gamewidget.h
index 3eeaac96..4b4371b2 100644
--- a/ksmiletris/gamewidget.h
+++ b/ksmiletris/gamewidget.h
@@ -63,7 +63,7 @@ public:
return s;
}
- void tqrepaintChilds();
+ void repaintChilds();
private:
TQPixmap *sprites;
diff --git a/ksmiletris/gamewindow.cpp b/ksmiletris/gamewindow.cpp
index c28a81d2..2d5824c8 100644
--- a/ksmiletris/gamewindow.cpp
+++ b/ksmiletris/gamewindow.cpp
@@ -137,7 +137,7 @@ void GameWindow::menu_pause()
if (game->in_game) {
game->in_pause = !game->in_pause;
((KToggleAction*)actionCollection()->action(KStdGameAction::stdName(KStdGameAction::Pause)))->setChecked(game->in_pause);
- game->tqrepaintChilds();
+ game->repaintChilds();
}
}
@@ -145,7 +145,7 @@ void GameWindow::menu_endGame()
{
if (game->in_game) {
game->in_game = false;
- game->tqrepaintChilds();
+ game->repaintChilds();
((KToggleAction*)actionCollection()->action(KStdGameAction::stdName(KStdGameAction::Pause)))->setChecked(false);
gameOver();
}