- added fullscreen/window switch to F11 (gnome-like)
authorIngo Ruhnke <grumbel@gmx.de>
Mon, 19 Feb 2007 16:44:59 +0000 (16:44 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Mon, 19 Feb 2007 16:44:59 +0000 (16:44 +0000)
SVN-Revision: 4868

src/mainloop.cpp

index b49915b..5f9230f 100644 (file)
@@ -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();
+    }
   }
 }