From ffaadd80066a2a0f8c30d58ef3466f79e98254d7 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Mon, 19 Feb 2007 16:44:59 +0000 Subject: [PATCH] - added fullscreen/window switch to F11 (gnome-like) SVN-Revision: 4868 --- src/mainloop.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainloop.cpp b/src/mainloop.cpp index b49915b99..5f9230fdb 100644 --- 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(); + } } } -- 2.11.0