aboutsummaryrefslogtreecommitdiff
path: root/src/hud.h
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-05 16:41:32 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-06 20:59:36 +0100
commit7ac57c976d95bce5a7a98e0f269e4cd3d61f3055 (patch)
treefb31a7fa5716579dadf437ebcf799fac62634a2d /src/hud.h
parent44eb8344a000dd315d5e21039871f353441601af (diff)
downloadsst-7ac57c976d95bce5a7a98e0f269e4cd3d61f3055.tar.gz
sst-7ac57c976d95bce5a7a98e0f269e4cd3d61f3055.zip
Pass screen width and height into HudPaint events
This makes it unnecessary to call hud_screensize in basically every handler.
Diffstat (limited to 'src/hud.h')
-rw-r--r--src/hud.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hud.h b/src/hud.h
index e3aea1d..8dc2d23 100644
--- a/src/hud.h
+++ b/src/hud.h
@@ -33,7 +33,7 @@ typedef int hud_wchar;
* Emitted when the game HUD is being drawn. Allows features to draw their own
* additional overlays atop the game's standard HUD.
*/
-DECL_EVENT(HudPaint, void)
+DECL_EVENT(HudPaint, int /*width*/, int /*height*/)
/* Font style flags */
#define HUD_FONT_ITALIC 1