mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- fallback to console font in case of missing small font
https://forum.zdoom.org/viewtopic.php?t=66102
This commit is contained in:
parent
d44d91d6a4
commit
c45e8b32d0
1 changed files with 4 additions and 0 deletions
|
@ -1719,6 +1719,10 @@ void V_InitFonts()
|
||||||
I_FatalError("Console font not found.");
|
I_FatalError("Console font not found.");
|
||||||
}
|
}
|
||||||
// SmallFont and SmallFont2 have no default provided by the engine. BigFont only has in non-Raven games.
|
// SmallFont and SmallFont2 have no default provided by the engine. BigFont only has in non-Raven games.
|
||||||
|
if (OriginalSmallFont == nullptr)
|
||||||
|
{
|
||||||
|
OriginalSmallFont = ConFont;
|
||||||
|
}
|
||||||
if (SmallFont == nullptr)
|
if (SmallFont == nullptr)
|
||||||
{
|
{
|
||||||
SmallFont = OriginalSmallFont;
|
SmallFont = OriginalSmallFont;
|
||||||
|
|
Loading…
Reference in a new issue