mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- fixed: The OriginalSmallFont must always be created, even when the actual SmallFont is not the IWAD default.
This commit is contained in:
parent
1e1ec2d59b
commit
5953f492c1
1 changed files with 12 additions and 3 deletions
|
@ -1609,8 +1609,6 @@ void V_InitFonts()
|
||||||
SmallFont = new FFont("SmallFont", "FONTA%02u", "defsmallfont", HU_FONTSTART, HU_FONTSIZE, 1, -1);
|
SmallFont = new FFont("SmallFont", "FONTA%02u", "defsmallfont", HU_FONTSTART, HU_FONTSIZE, 1, -1);
|
||||||
SmallFont->SetCursor('[');
|
SmallFont->SetCursor('[');
|
||||||
}
|
}
|
||||||
OriginalSmallFont = new FFont("OriginalSmallFont", "FONTA%02u", "defsmallfont", HU_FONTSTART, HU_FONTSIZE, 1, -1, -1, false, true);
|
|
||||||
OriginalSmallFont->SetCursor('[');
|
|
||||||
}
|
}
|
||||||
else if (Wads.CheckNumForName("STCFN033", ns_graphics) >= 0)
|
else if (Wads.CheckNumForName("STCFN033", ns_graphics) >= 0)
|
||||||
{
|
{
|
||||||
|
@ -1626,9 +1624,20 @@ void V_InitFonts()
|
||||||
{
|
{
|
||||||
SmallFont = new FFont("SmallFont", "STCFN%.3d", "defsmallfont", HU_FONTSTART, HU_FONTSIZE, HU_FONTSTART, -1);
|
SmallFont = new FFont("SmallFont", "STCFN%.3d", "defsmallfont", HU_FONTSTART, HU_FONTSIZE, HU_FONTSTART, -1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create the original small font as a fallback for incomplete definitions.
|
||||||
|
if (Wads.CheckNumForName("FONTA_S") >= 0)
|
||||||
|
{
|
||||||
|
OriginalSmallFont = new FFont("OriginalSmallFont", "FONTA%02u", "defsmallfont", HU_FONTSTART, HU_FONTSIZE, 1, -1, -1, false, true);
|
||||||
|
OriginalSmallFont->SetCursor('[');
|
||||||
|
}
|
||||||
|
else if (Wads.CheckNumForName("STCFN033", ns_graphics) >= 0)
|
||||||
|
{
|
||||||
OriginalSmallFont = new FFont("OriginalSmallFont", "STCFN%.3d", "defsmallfont", HU_FONTSTART, HU_FONTSIZE, HU_FONTSTART, -1, -1, false, true);
|
OriginalSmallFont = new FFont("OriginalSmallFont", "STCFN%.3d", "defsmallfont", HU_FONTSTART, HU_FONTSIZE, HU_FONTSTART, -1, -1, false, true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (SmallFont)
|
if (SmallFont)
|
||||||
{
|
{
|
||||||
uint32_t colors[256] = {};
|
uint32_t colors[256] = {};
|
||||||
|
|
Loading…
Reference in a new issue