- use the new console font to display stat output.

This commit is contained in:
Christoph Oelckers 2019-03-11 18:27:46 +01:00
parent 109413b3a1
commit 414a38c19d

View file

@ -87,7 +87,7 @@ void FStat::PrintStat ()
{ {
int textScale = active_con_scale(); int textScale = active_con_scale();
int fontheight = ConFont->GetHeight() + 1; int fontheight = NewConsoleFont->GetHeight() + 1;
int y = SCREENHEIGHT / textScale; int y = SCREENHEIGHT / textScale;
int count = 0; int count = 0;
@ -105,7 +105,7 @@ void FStat::PrintStat ()
// Count number of linefeeds but ignore terminating ones. // Count number of linefeeds but ignore terminating ones.
if (stattext[i] == '\n') y -= fontheight; if (stattext[i] == '\n') y -= fontheight;
} }
screen->DrawText(ConFont, CR_GREEN, 5 / textScale, y, stattext, screen->DrawText(NewConsoleFont, CR_GREEN, 5 / textScale, y, stattext,
DTA_VirtualWidth, screen->GetWidth() / textScale, DTA_VirtualWidth, screen->GetWidth() / textScale,
DTA_VirtualHeight, screen->GetHeight() / textScale, DTA_VirtualHeight, screen->GetHeight() / textScale,
DTA_KeepRatio, true, TAG_DONE); DTA_KeepRatio, true, TAG_DONE);