FPS counter no longer blocks level time on automap

Respects HUD & Console scaling
This commit is contained in:
3saster 2019-07-17 23:01:47 -07:00 committed by Christoph Oelckers
parent 9219834a1a
commit 5eb2a6b681

View file

@ -617,6 +617,7 @@ void DBaseStatusBar::DoDrawAutomapHUD(int crdefault, int highlight)
if (am_showtime)
{
if (vid_fps) y += (NewConsoleFont->GetHeight() * active_con_scale() + 5) / scale;
sec = Tics2Seconds(primaryLevel->time);
textbuffer.Format("%02d:%02d:%02d", sec / 3600, (sec % 3600) / 60, sec % 60);
screen->DrawText(font, crdefault, vwidth - zerowidth * 8 - textdist, y, textbuffer, DTA_VirtualWidth, vwidth, DTA_VirtualHeight, vheight,