From b48f4032d8930b26638903984f91660be62c0a87 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 18 Mar 2019 14:27:42 +0100 Subject: [PATCH] - draw the FPS counter with the new console font. With the current scale settings the original one is simply too small. --- src/v_framebuffer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/v_framebuffer.cpp b/src/v_framebuffer.cpp index c026133c0..ec53fc7e8 100644 --- a/src/v_framebuffer.cpp +++ b/src/v_framebuffer.cpp @@ -156,9 +156,9 @@ void DFrameBuffer::DrawRateStuff () int textScale = active_con_scale(); chars = mysnprintf (fpsbuff, countof(fpsbuff), "%2llu ms (%3llu fps)", (unsigned long long)howlong, (unsigned long long)LastCount); - rate_x = Width / textScale - ConFont->StringWidth(&fpsbuff[0]); - Clear (rate_x * textScale, 0, Width, ConFont->GetHeight() * textScale, GPalette.BlackIndex, 0); - DrawText (ConFont, CR_WHITE, rate_x, 0, (char *)&fpsbuff[0], + rate_x = Width / textScale - NewConsoleFont->StringWidth(&fpsbuff[0]); + Clear (rate_x * textScale, 0, Width, NewConsoleFont->GetHeight() * textScale, GPalette.BlackIndex, 0); + DrawText (NewConsoleFont, CR_WHITE, rate_x, 0, (char *)&fpsbuff[0], DTA_VirtualWidth, screen->GetWidth() / textScale, DTA_VirtualHeight, screen->GetHeight() / textScale, DTA_KeepRatio, true, TAG_DONE);