From 7e1fe48ff26c40d51634e0755cc10baea335ae7c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 30 Mar 2025 10:53:50 +0200 Subject: [PATCH] RR: fix placement of time display on alt. HUD. --- wadsrc/static/zscript/alt_hud.zs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/alt_hud.zs b/wadsrc/static/zscript/alt_hud.zs index 25bccc490..46bbfd14a 100644 --- a/wadsrc/static/zscript/alt_hud.zs +++ b/wadsrc/static/zscript/alt_hud.zs @@ -194,7 +194,7 @@ class AltHud ui { String s = String.Format("%02i:%02i:%02i", seconds / 3600, (seconds % 3600) / 60, seconds % 60); int length = 8 * fnt.GetCharWidth("0"); - DrawHudText(fnt, color, s, x-length, y, trans, fontscale); + DrawHudText(fnt, color, s, x-length * fontscale, y, trans, fontscale); } //=========================================================================== @@ -638,8 +638,8 @@ class AltHud ui let allname = amstr .. volname; let myfont = generic_ui? NewSmallFont : StatFont.CanPrint(allname)? StatFont : OriginalSmallFont; int bottom = hudheight - 1; - int fonth = myfont.GetHeight() + 1; double fontscale = generic_ui? 1. : currentStats.info.fontscale; + double fonth = myfont.GetHeight() * fontscale + 1; if (am_showtotaltime) {