summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-19 18:58:26 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-19 18:58:26 +0300
commit78982d2707fc8db243cc29448c411a52b5aeeffb (patch)
tree43f1122cfcbf190ccfe274b67ed3aaf638144699 /src/client.cpp
parent30d18cb5d0834132853fb14d45828582b42a8f6e (diff)
downloadplus-78982d2707fc8db243cc29448c411a52b5aeeffb.tar.gz
plus-78982d2707fc8db243cc29448c411a52b5aeeffb.tar.bz2
plus-78982d2707fc8db243cc29448c411a52b5aeeffb.tar.xz
plus-78982d2707fc8db243cc29448c411a52b5aeeffb.zip
If video test running show this info in window header.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp16
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();