summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-21 01:24:19 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-21 01:24:19 +0300
commit188bfbdc024afe71be191d17a12bf5bf12077065 (patch)
treef7d6f127e9f39d844e42cc1e28aa1d7cbbe3fa03 /src/client.cpp
parent7432e8857d5e58953326e49e24f79a1fcdbeaef2 (diff)
downloadmv-188bfbdc024afe71be191d17a12bf5bf12077065.tar.gz
mv-188bfbdc024afe71be191d17a12bf5bf12077065.tar.bz2
mv-188bfbdc024afe71be191d17a12bf5bf12077065.tar.xz
mv-188bfbdc024afe71be191d17a12bf5bf12077065.zip
Add option in settings to center window on screen (windows and osx)
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 7c059d968..3d4e2a37d 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -343,7 +343,10 @@ void Client::gameInit()
#endif
#if defined(WIN32) || defined(__APPLE__)
- putenv("SDL_VIDEO_CENTERED=1");
+ if (config.getBoolValue("centerwindow"))
+ putenv("SDL_VIDEO_CENTERED=1");
+ else
+ putenv("SDL_VIDEO_CENTERED=0");
#endif
chatLogger = new ChatLogger;