Skip to content
Permalink
Browse files

- use the new console font to display stat output.

  • Loading branch information...
coelckers committed Mar 11, 2019
1 parent 109413b commit 414a38c19d1207055942e734816a7cda3cc63321
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/utility/stats.cpp
@@ -87,7 +87,7 @@ void FStat::PrintStat ()
{
int textScale = active_con_scale();

int fontheight = ConFont->GetHeight() + 1;
int fontheight = NewConsoleFont->GetHeight() + 1;
int y = SCREENHEIGHT / textScale;
int count = 0;

@@ -105,7 +105,7 @@ void FStat::PrintStat ()
// Count number of linefeeds but ignore terminating ones.
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_VirtualHeight, screen->GetHeight() / textScale,
DTA_KeepRatio, true, TAG_DONE);

0 comments on commit 414a38c

Please sign in to comment.
You can’t perform that action at this time.