netpanzer-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp


From: Ivo Danihelka
Subject: [netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp
Date: Tue, 23 Sep 2003 18:51:03 -0400

CVSROOT:        /cvsroot/netpanzer
Module name:    netpanzer
Branch:         
Changes by:     Ivo Danihelka <address@hidden>  03/09/23 18:51:03

Modified files:
        src/NetPanzer/Interfaces: GameManager.cpp 

Log message:
        Alt+Enter ... fullscreen

Patches:
Index: netpanzer/src/NetPanzer/Interfaces/GameManager.cpp
diff -u netpanzer/src/NetPanzer/Interfaces/GameManager.cpp:1.52 
netpanzer/src/NetPanzer/Interfaces/GameManager.cpp:1.53
--- netpanzer/src/NetPanzer/Interfaces/GameManager.cpp:1.52     Tue Sep 23 
11:04:44 2003
+++ netpanzer/src/NetPanzer/Interfaces/GameManager.cpp  Tue Sep 23 18:51:03 2003
@@ -495,6 +495,14 @@
         Bot::bot()->processEvents();
     }
 
+    // Alt+Enter fullscreen
+    if (KeyboardInterface::getKeyPressed(SDLK_RETURN)
+            && (KeyboardInterface::getKeyState(SDLK_RALT)
+                || KeyboardInterface::getKeyState(SDLK_LALT)))
+    {
+        GameConfig::setFullscreen(!Screen->isFullScreen());
+        GameManager::setVideoMode();
+    }
 
     if (Desktop::getVisible("GameView")) {
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]