aboutsummaryrefslogtreecommitdiff
path: root/src/hud.c
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-16 02:20:31 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-16 02:21:43 +0100
commit27ce81043a31e61d9e2bea88e4ea883d8e4a4b39 (patch)
tree89931db04aa47b66f985566b7903fe3085b6e793 /src/hud.c
parent7621b76c7081049b6b93ee679cbd786dbb7d49a4 (diff)
downloadsst-27ce81043a31e61d9e2bea88e4ea883d8e4a4b39.tar.gz
sst-27ce81043a31e61d9e2bea88e4ea883d8e4a4b39.zip
Fix major idiocy in inputhud (and hud kinda)
Also pointed out by bill. D'oh, guess I'm fired.
Diffstat (limited to 'src/hud.c')
-rw-r--r--src/hud.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hud.c b/src/hud.c
index 8c861aa..f402c15 100644
--- a/src/hud.c
+++ b/src/hud.c
@@ -97,8 +97,10 @@ typedef void (*VCALLCONV Paint_func)(void *);
static Paint_func orig_Paint;
void VCALLCONV hook_Paint(void *this) {
int width, height;
- hud_screensize(&width, &height);
- if (this == toolspanel) EMIT_HudPaint(width, height);
+ if (this == toolspanel) {
+ hud_screensize(&width, &height);
+ EMIT_HudPaint(width, height);
+ }
orig_Paint(this);
}