summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-17 17:04:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-17 17:04:16 +0300
commitf0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1 (patch)
treeca2326d013f8388d17cfe023aaf9e0049ad3d7cc
parent17c09b82f9cef2c97740ed38bd2001620035892a (diff)
downloadmanaplus-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.tar.gz
manaplus-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.tar.bz2
manaplus-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.tar.xz
manaplus-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.zip
Fix old fullscreen value check.
-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))
{