- allow the automap HUD to use the VGA font.

This commit is contained in:
Christoph Oelckers 2019-04-10 20:39:15 +02:00
commit 9e096c62fd
8 changed files with 136 additions and 81 deletions

View file

@ -265,6 +265,10 @@ void DFrameBuffer::DrawTextCommon(FFont *font, int normalcolor, double x, double
int kerning;
FTexture *pic;
// Workaround until this can be automated.
if (font == NewSmallFont && normalcolor == CR_UNTRANSLATED)
normalcolor = C_GetDefaultFontColor();
if (parms.celly == 0) parms.celly = font->GetHeight() + 1;
parms.celly *= parms.scaley;