summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-12 17:11:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-12 17:15:04 +0300
commit6fcb5c4b9f03dd3e4b9fea0475aec2c21a8510bc (patch)
tree46394dc0e74293959d9adc9ee4fbe65a88e3d589
parentc81199bab9f943e187ce8b1347bd06d2395674e6 (diff)
downloadmv-6fcb5c4b9f03dd3e4b9fea0475aec2c21a8510bc.tar.gz
mv-6fcb5c4b9f03dd3e4b9fea0475aec2c21a8510bc.tar.bz2
mv-6fcb5c4b9f03dd3e4b9fea0475aec2c21a8510bc.tar.xz
mv-6fcb5c4b9f03dd3e4b9fea0475aec2c21a8510bc.zip
fix showing branding icon in windows.
-rw-r--r--src/client.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index ae76813ab..cd0030f3a 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -358,12 +358,16 @@ void Client::gameInit()
SDL_EventState(SDL_USEREVENT, SDL_IGNORE);
#ifdef WIN32
+ extractDataDir();
+ mountDataDir();
+ setIcon();
+ initGraphics();
+#else
setIcon();
-#endif
-
initGraphics();
extractDataDir();
mountDataDir();
+#endif
if (mOptions.dataPath.empty()
&& !branding.getStringValue("dataPath").empty())