mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 14:01:45 +00:00
- check for presence of fonts in message box menu
https://forum.zdoom.org/viewtopic.php?t=64958
This commit is contained in:
parent
b818beca4b
commit
1b1a85a283
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@ class MessageBoxMenu : Menu
|
|||
|
||||
if (!generic_ui)
|
||||
{
|
||||
if (SmallFont.CanPrint(message) && SmallFont.CanPrint("$TXT_YES") && SmallFont.CanPrint("$TXT_NO")) textFont = SmallFont;
|
||||
else if (OriginalSmallFont.CanPrint(message) && OriginalSmallFont.CanPrint("$TXT_YES") && OriginalSmallFont.CanPrint("$TXT_NO")) textFont = OriginalSmallFont;
|
||||
if (SmallFont && SmallFont.CanPrint(message) && SmallFont.CanPrint("$TXT_YES") && SmallFont.CanPrint("$TXT_NO")) textFont = SmallFont;
|
||||
else if (OriginalSmallFont && OriginalSmallFont.CanPrint(message) && OriginalSmallFont.CanPrint("$TXT_YES") && OriginalSmallFont.CanPrint("$TXT_NO")) textFont = OriginalSmallFont;
|
||||
}
|
||||
|
||||
if (!textFont)
|
||||
|
|
Loading…
Reference in a new issue