From c652b5b89d22a532f80de4a3eff96a336f90d58b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 Feb 2012 03:18:22 +0300 Subject: Center window on screen under windows and mac osx. --- src/client.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/client.cpp b/src/client.cpp index 6e80a46d6..5344dcffe 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -276,7 +276,6 @@ Client::Client(const Options &options): void Client::testsInit() { - printf ("testInit\n"); if (!mOptions.test.empty()) { gameInit(); @@ -342,6 +341,12 @@ void Client::gameInit() textdomain("manaplus"); #endif +#if defined(WIN32) || defined(__APPLE__) + putenv("SDL_VIDEO_CENTERED=1"); +#endif + + putenv((char*)("LANG=" + lang).c_str()); + chatLogger = new ChatLogger; if (mOptions.chatLogDir == "") chatLogger->setBaseLogDir(mLocalDataDir + std::string("/logs/")); -- cgit v1.2.3-60-g2f50