projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa48828
)
- added fullscreen/window switch to F11 (gnome-like)
author
Ingo Ruhnke
<grumbel@gmx.de>
Mon, 19 Feb 2007 16:44:59 +0000
(16:44 +0000)
committer
Ingo Ruhnke
<grumbel@gmx.de>
Mon, 19 Feb 2007 16:44:59 +0000
(16:44 +0000)
SVN-Revision: 4868
src/mainloop.cpp
patch
|
blob
|
history
diff --git
a/src/mainloop.cpp
b/src/mainloop.cpp
index
b49915b
..
5f9230f
100644
(file)
--- a/
src/mainloop.cpp
+++ b/
src/mainloop.cpp
@@
-173,6
+173,10
@@
MainLoop::process_events()
Menu::current()->event(event);
if(event.type == SDL_QUIT)
quit();
+ else if (event.type == SDL_KEYDOWN && event.key.keysym.sym == SDLK_F11) {
+ config->use_fullscreen = !config->use_fullscreen;
+ init_video();
+ }
}
}