WINTERMUTE: Silence an error when trying to set window-title

Currently we don't set the window-title anyhow, so why trigger an error about
the text-encoding?
This commit is contained in:
Einar Johan Trøan Sømåen 2012-05-09 15:29:31 +02:00 committed by Einar Johan Trøan Sømåen
parent ecc03331db
commit 66602bcd9c

View File

@ -3791,8 +3791,10 @@ void CBGame::SetWindowTitle() {
if (_textEncoding == TEXT_UTF8) {
title = Utf8String(Title);
} else {
WideString wstr = StringUtil::AnsiToWide(Title);
title = StringUtil::WideToUtf8(wstr);
warning("CBGame::SetWindowTitle -Ignoring textencoding");
title = Utf8String(Title);
/* WideString wstr = StringUtil::AnsiToWide(Title);
title = StringUtil::WideToUtf8(wstr);*/
}
CBRenderSDL *renderer = static_cast<CBRenderSDL *>(_renderer);