fix so that pause text is displayed correctly
authorMatthias Braun <matze@braunis.de>
Sun, 30 May 2004 13:55:28 +0000 (13:55 +0000)
committerMatthias Braun <matze@braunis.de>
Sun, 30 May 2004 13:55:28 +0000 (13:55 +0000)
SVN-Revision: 1365

src/gameloop.cpp

index a39342d..ac9ad58 100644 (file)
@@ -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())