summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 98a0fa8fa..4462c1a5d 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -542,7 +542,7 @@ void Client::gameInit()
const int oldWidth = config.getValueInt("oldscreenwidth", -1);
const int oldHeight = config.getValueInt("oldscreenheight", -1);
- const bool oldFullscreen = config.getValueInt("oldscreen", -1);
+ const int oldFullscreen = config.getValueInt("oldscreen", -1);
if (oldWidth != -1 && oldHeight != -1 && oldFullscreen != -1)
{
config.deleteKey("oldscreenwidth");
@@ -551,7 +551,7 @@ void Client::gameInit()
config.setValueInt("screenwidth", oldWidth);
config.setValueInt("screenheight", oldHeight);
- config.setValue("screen", oldFullscreen);
+ config.setValue("screen", oldFullscreen == 1);
if (!mainGraphics->setVideoMode(oldWidth, oldHeight, bpp,
oldFullscreen, hwaccel, enableResize, noFrame))
{