mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-03-03 07:11:28 +00:00
- Reload fake fonts, people keep doing it and that made some mods incompatible.
This commit is contained in:
parent
42b037d708
commit
98de1423ea
1 changed files with 25 additions and 2 deletions
|
@ -3727,10 +3727,33 @@ void V_InitFonts()
|
||||||
{
|
{
|
||||||
BigFont = SmallFont;
|
BigFont = SmallFont;
|
||||||
}
|
}
|
||||||
// hack hack
|
|
||||||
|
// ugly hack for fake fonts
|
||||||
|
if (!(NewSmallFont = V_GetFont("NewSmallFont", "SMALLFNT")))
|
||||||
|
{
|
||||||
|
if (Wads.CheckNumForName ("FONTA_S") >= 0)
|
||||||
|
{
|
||||||
|
NewSmallFont = new FFont("NewSmallFont", "FONTA%02u", "defsmallfont", HU_FONTSTART, HU_FONTSIZE, 1, -1);
|
||||||
|
SmallFont->SetCursor('[');
|
||||||
|
}
|
||||||
|
else if (Wads.CheckNumForName ("STCFN033", ns_graphics) >= 0)
|
||||||
|
{
|
||||||
|
NewSmallFont = new FFont("NewSmallFont", "STCFN%.3d", "defsmallfont", HU_FONTSTART, HU_FONTSIZE, HU_FONTSTART, -1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(NewConsoleFont = V_GetFont("NewConsoleFont", "CONFONT")))
|
||||||
|
{
|
||||||
NewConsoleFont = ConFont;
|
NewConsoleFont = ConFont;
|
||||||
CurrentConsoleFont = ConFont;
|
}
|
||||||
|
|
||||||
|
if (NewSmallFont == nullptr)
|
||||||
|
{
|
||||||
NewSmallFont = SmallFont;
|
NewSmallFont = SmallFont;
|
||||||
|
}
|
||||||
|
|
||||||
|
// hack hack
|
||||||
|
CurrentConsoleFont = ConFont;
|
||||||
AlternativeSmallFont = SmallFont;
|
AlternativeSmallFont = SmallFont;
|
||||||
OriginalSmallFont = SmallFont;
|
OriginalSmallFont = SmallFont;
|
||||||
OriginalBigFont = BigFont;
|
OriginalBigFont = BigFont;
|
||||||
|
|
Loading…
Reference in a new issue