From: Ingo Ruhnke Date: Mon, 19 Feb 2007 16:44:59 +0000 (+0000) Subject: - added fullscreen/window switch to F11 (gnome-like) X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ffaadd80066a2a0f8c30d58ef3466f79e98254d7;p=supertux.git - added fullscreen/window switch to F11 (gnome-like) SVN-Revision: 4868 --- 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(); + } } }