Skip to content

Commit 7e1fe48

Browse files
committed
RR: fix placement of time display on alt. HUD.
1 parent 2aa1e22 commit 7e1fe48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wadsrc/static/zscript/alt_hud.zs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class AltHud ui
194194
{
195195
String s = String.Format("%02i:%02i:%02i", seconds / 3600, (seconds % 3600) / 60, seconds % 60);
196196
int length = 8 * fnt.GetCharWidth("0");
197-
DrawHudText(fnt, color, s, x-length, y, trans, fontscale);
197+
DrawHudText(fnt, color, s, x-length * fontscale, y, trans, fontscale);
198198
}
199199

200200
//===========================================================================
@@ -638,8 +638,8 @@ class AltHud ui
638638
let allname = amstr .. volname;
639639
let myfont = generic_ui? NewSmallFont : StatFont.CanPrint(allname)? StatFont : OriginalSmallFont;
640640
int bottom = hudheight - 1;
641-
int fonth = myfont.GetHeight() + 1;
642641
double fontscale = generic_ui? 1. : currentStats.info.fontscale;
642+
double fonth = myfont.GetHeight() * fontscale + 1;
643643

644644
if (am_showtotaltime)
645645
{

0 commit comments

Comments
 (0)