summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-18 03:18:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-18 03:18:22 +0300
commitc652b5b89d22a532f80de4a3eff96a336f90d58b (patch)
treef664f07a3ed96f56a1c89fce717fee73cdfdcd96 /src
parentdf434dec8da2ec25b0ce19445cc80885ad85e0f3 (diff)
downloadmv-c652b5b89d22a532f80de4a3eff96a336f90d58b.tar.gz
mv-c652b5b89d22a532f80de4a3eff96a336f90d58b.tar.bz2
mv-c652b5b89d22a532f80de4a3eff96a336f90d58b.tar.xz
mv-c652b5b89d22a532f80de4a3eff96a336f90d58b.zip
Center window on screen under windows and mac osx.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp7
1 files changed, 6 insertions, 1 deletions
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/"));