From: Matthias Braun Date: Sun, 30 May 2004 13:55:28 +0000 (+0000) Subject: fix so that pause text is displayed correctly X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=11cc1eb032482c88b533084bf78586ee830a5693;p=supertux.git fix so that pause text is displayed correctly SVN-Revision: 1365 --- diff --git a/src/gameloop.cpp b/src/gameloop.cpp index a39342df7..ac9ad58e5 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -498,6 +498,9 @@ GameSession::draw() if(game_pause) { + context.push_transform(); + context.set_translation(Vector(0, 0)); + int x = screen->h / 20; for(int i = 0; i < x; ++i) { @@ -513,6 +516,8 @@ GameSession::draw() Color(rand() % 50, rand() % 50, rand() % 50, 128), LAYER_FOREGROUND1); world->context.draw_text_center(blue_text, "PAUSE - Press 'P' To Play", Vector(0, 230), LAYER_FOREGROUND1+2); + + context.pop_transform(); } if(Menu::current())