projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98ac6d9
)
fix so that pause text is displayed correctly
author
Matthias Braun
<matze@braunis.de>
Sun, 30 May 2004 13:55:28 +0000
(13:55 +0000)
committer
Matthias Braun
<matze@braunis.de>
Sun, 30 May 2004 13:55:28 +0000
(13:55 +0000)
SVN-Revision: 1365
src/gameloop.cpp
patch
|
blob
|
history
diff --git
a/src/gameloop.cpp
b/src/gameloop.cpp
index
a39342d
..
ac9ad58
100644
(file)
--- 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())