[Super-tux-commit] supertux/src gameloop.cpp,1.139,1.140
Brought to you by:
wkendrick
From: Matze B. <mat...@us...> - 2004-05-30 13:55:39
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv877 Modified Files: gameloop.cpp Log Message: fix so that pause text is displayed correctly Index: gameloop.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameloop.cpp,v retrieving revision 1.139 retrieving revision 1.140 diff -u -d -r1.139 -r1.140 --- gameloop.cpp 30 May 2004 01:08:48 -0000 1.139 +++ gameloop.cpp 30 May 2004 13:55:28 -0000 1.140 @@ -498,6 +498,9 @@ 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 @@ 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()) |