From 78982d2707fc8db243cc29448c411a52b5aeeffb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 19 Aug 2012 18:58:26 +0300 Subject: If video test running show this info in window header. --- src/client.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/client.cpp') 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(); -- cgit v1.2.3-60-g2f50