summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 9210eefc..5cc75fa1 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -232,6 +232,12 @@ void do_input()
// Workaround for Win and else
#if __USE_UNIX98
SDL_WM_ToggleFullScreen(screen);
+ if ((int)config.getValue("screen", 0) == 0) {
+ config.setValue("screen", 1);
+ }
+ else {
+ config.setValue("screen", 0);
+ }
#else
int displayFlags = 0;
if ((int)config.getValue("screen", 0)) {