From 188bfbdc024afe71be191d17a12bf5bf12077065 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 21 Apr 2012 01:24:19 +0300 Subject: Add option in settings to center window on screen (windows and osx) --- src/client.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/client.cpp') 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; -- cgit v1.2.3-70-g09d2