summaryrefslogtreecommitdiff
path: root/src/hud.h
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-12-18 23:33:26 +0000
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2026-02-16 19:11:24 +0000
commitf386f2a1fcae885967278710fe997c56e2183476 (patch)
treea00d8854a055640952c48890b452ac5ae1bf9ced /src/hud.h
parent7a07c08abe46f97f2412f06c77204e9015f97a47 (diff)
downloadsst-f386f2a1fcae885967278710fe997c56e2183476.tar.gz
sst-f386f2a1fcae885967278710fe997c56e2183476.zip
Size-optimise a few things
Saves multiple kilobytes, somehow. Unlikely to make much of a performance difference since it's mostly init/shutdown stuff.
Diffstat (limited to 'src/hud.h')
-rw-r--r--src/hud.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hud.h b/src/hud.h
index a966ef0..5fbf5ad 100644
--- a/src/hud.h
+++ b/src/hud.h
@@ -65,8 +65,8 @@ void hud_drawline(int x0, int y0, int x1, int y1, struct rgba colour);
void hud_drawpolyline(int *xs, int *ys, int npoints, struct rgba colour);
/* Draws text using a given font handle. */
-void hud_drawtext(ulong font, int x, int y, struct rgba colour, hud_wchar *str,
- int len);
+void hud_drawtext(ulong font, int x, int y, struct rgba colour,
+ const hud_wchar *str, int len);
/* Gets the width and height of the game window in pixels. */
void hud_screensize(int *width, int *height);