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:
parent
197ef8f178
commit
a605c7fd69
3 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue