From 11cc1eb032482c88b533084bf78586ee830a5693 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sun, 30 May 2004 13:55:28 +0000 Subject: [PATCH] fix so that pause text is displayed correctly SVN-Revision: 1365 --- src/gameloop.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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()) -- 2.11.0