mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +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
c9ee880196
commit
5c0562ca7a
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@ class MessageBoxMenu : Menu
|
||||||
|
|
||||||
if (!generic_ui)
|
if (!generic_ui)
|
||||||
{
|
{
|
||||||
if (SmallFont.CanPrint(message) && SmallFont.CanPrint("$TXT_YES") && SmallFont.CanPrint("$TXT_NO")) textFont = SmallFont;
|
if (SmallFont && 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;
|
else if (OriginalSmallFont && OriginalSmallFont.CanPrint(message) && OriginalSmallFont.CanPrint("$TXT_YES") && OriginalSmallFont.CanPrint("$TXT_NO")) textFont = OriginalSmallFont;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!textFont)
|
if (!textFont)
|
||||||
|
|
Loading…
Reference in a new issue