OSYSTEM: displayMessageOnOSD() now accepts non-ASCII strings

It should now accept strings encoded using the current
TranslationManaged charset (e.g. translated text).
This commit is contained in:
Thierry Crozat 2011-05-22 21:57:53 +01:00
parent 197ef8f178
commit a605c7fd69
3 changed files with 4 additions and 3 deletions

View file

@ -2060,7 +2060,7 @@ void SdlGraphicsManager::displayMessageOnOSD(const char *msg) {
_osdSurface->format->Bshift, _osdSurface->format->Ashift);
// The font we are going to use:
const Graphics::Font *font = FontMan.getFontByUsage(Graphics::FontManager::kGUIFont);
const Graphics::Font *font = FontMan.getFontByUsage(Graphics::FontManager::kLocalizedFont);
// Clear everything with the "transparent" color, i.e. the colorkey
SDL_FillRect(_osdSurface, 0, kOSDColorKey);