summaryrefslogtreecommitdiff
path: root/src/client.cpp
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 /src/client.cpp
parent17c09b82f9cef2c97740ed38bd2001620035892a (diff)
downloadmv-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.tar.gz
mv-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.tar.bz2
mv-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.tar.xz
mv-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.zip
Fix old fullscreen value check.
Diffstat (limited to 'src/client.cpp')
-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))
{