From 27ce81043a31e61d9e2bea88e4ea883d8e4a4b39 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 16 Apr 2025 02:20:31 +0100 Subject: Fix major idiocy in inputhud (and hud kinda) Also pointed out by bill. D'oh, guess I'm fired. --- src/inputhud.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/inputhud.c') diff --git a/src/inputhud.c b/src/inputhud.c index 1ce919a..4e332c4 100644 --- a/src/inputhud.c +++ b/src/inputhud.c @@ -326,6 +326,7 @@ static void reloadfonts() { HANDLE_EVENT(HudPaint, int screenw, int screenh) { if (!con_getvari(sst_inputhud)) return; if_cold (screenw != lastw || screenh != lasth) reloadfonts(); + lastw = screenw; lasth = screenh; int basesz = screenw > screenh ? screenw : screenh; int boxsz = ceilf(basesz * 0.025f); if (boxsz < 24) boxsz = 24; -- cgit v1.2.3-54-g00ecf