- enable Unicode font on cast call.

This commit is contained in:
Christoph Oelckers 2019-04-10 22:32:58 +02:00
parent 9fddc38030
commit 2747eef0e0

View file

@ -542,9 +542,10 @@ void DIntermissionScreenCast::Drawer ()
const char *name = mName; const char *name = mName;
if (name != NULL) if (name != NULL)
{ {
auto font = generic_ui ? NewSmallFont : SmallFont;
if (*name == '$') name = GStrings(name+1); if (*name == '$') name = GStrings(name+1);
screen->DrawText (SmallFont, CR_UNTRANSLATED, screen->DrawText (font, CR_UNTRANSLATED,
(SCREENWIDTH - SmallFont->StringWidth (name) * CleanXfac)/2, (SCREENWIDTH - font->StringWidth (name) * CleanXfac)/2,
(SCREENHEIGHT * 180) / 200, (SCREENHEIGHT * 180) / 200,
name, name,
DTA_CleanNoMove, true, TAG_DONE); DTA_CleanNoMove, true, TAG_DONE);