diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-19 18:58:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-19 18:58:26 +0300 |
commit | 78982d2707fc8db243cc29448c411a52b5aeeffb (patch) | |
tree | 43f1122cfcbf190ccfe274b67ed3aaf638144699 /src/client.cpp | |
parent | 30d18cb5d0834132853fb14d45828582b42a8f6e (diff) | |
download | manaplus-78982d2707fc8db243cc29448c411a52b5aeeffb.tar.gz manaplus-78982d2707fc8db243cc29448c411a52b5aeeffb.tar.bz2 manaplus-78982d2707fc8db243cc29448c411a52b5aeeffb.tar.xz manaplus-78982d2707fc8db243cc29448c411a52b5aeeffb.zip |
If video test running show this info in window header.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/client.cpp b/src/client.cpp index 390d32b1a..b25f96a62 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -393,9 +393,19 @@ void Client::gameInit() SDL_EventState(SDL_SYSWMEVENT, SDL_IGNORE); SDL_EventState(SDL_USEREVENT, SDL_IGNORE); - SDL_WM_SetCaption(strprintf("%s %s", - branding.getStringValue("appName").c_str(), - SMALL_VERSION).c_str(), nullptr); + if (mOptions.test.empty()) + { + SDL_WM_SetCaption(strprintf("%s %s", + branding.getStringValue("appName").c_str(), + SMALL_VERSION).c_str(), nullptr); + } + else + { + SDL_WM_SetCaption(strprintf( + "Please wait - VIDEO MODE TEST - %s %s - Please wait", + branding.getStringValue("appName").c_str(), + SMALL_VERSION).c_str(), nullptr); + } ResourceManager *resman = ResourceManager::getInstance(); |