From 414a38c19d1207055942e734816a7cda3cc63321 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 11 Mar 2019 18:27:46 +0100 Subject: [PATCH] - use the new console font to display stat output. --- src/utility/stats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utility/stats.cpp b/src/utility/stats.cpp index 82b120bb2..817d1fe8b 100644 --- a/src/utility/stats.cpp +++ b/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);