From 7ac57c976d95bce5a7a98e0f269e4cd3d61f3055 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 5 Apr 2025 16:41:32 +0100 Subject: Pass screen width and height into HudPaint events This makes it unnecessary to call hud_screensize in basically every handler. --- src/hud.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hud.h') 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 -- cgit v1.2.3-54-g00ecf