From f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 Mar 2012 17:04:16 +0300 Subject: Fix old fullscreen value check. --- src/client.cpp | 4 ++-- 1 file 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)) { -- cgit v1.2.3-60-g2f50