projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb0adac
)
F10 toggles show FPS
author
Ryan Flegel
<rflegel@gmail.com>
Thu, 12 Jun 2008 21:24:57 +0000
(21:24 +0000)
committer
Ryan Flegel
<rflegel@gmail.com>
Thu, 12 Jun 2008 21:24:57 +0000
(21:24 +0000)
SVN-Revision: 5567
src/mainloop.cpp
patch
|
blob
|
history
diff --git
a/src/mainloop.cpp
b/src/mainloop.cpp
index
978d6bf
..
6a9bb04
100644
(file)
--- a/
src/mainloop.cpp
+++ b/
src/mainloop.cpp
@@
-201,6
+201,10
@@
MainLoop::process_events()
break;
case SDL_KEYDOWN:
+ if (event.key.keysym.sym == SDLK_F10)
+ {
+ config->show_fps = !config->show_fps;
+ }
if (event.key.keysym.sym == SDLK_F11)
{
config->use_fullscreen = !config->use_fullscreen;