diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-17 17:04:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-17 17:04:16 +0300 |
commit | f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1 (patch) | |
tree | ca2326d013f8388d17cfe023aaf9e0049ad3d7cc /src/client.cpp | |
parent | 17c09b82f9cef2c97740ed38bd2001620035892a (diff) | |
download | manaplus-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.tar.gz manaplus-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.tar.bz2 manaplus-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.tar.xz manaplus-f0ee9032965d550b07aa6d8cb8f2ed45eb75e5c1.zip |
Fix old fullscreen value check.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 4 |
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)) { |