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);