summaryrefslogtreecommitdiff
path: root/src/hud.c
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.c
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.c')
-rw-r--r--src/hud.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hud.c b/src/hud.c
index 0c7c142..ef86c4d 100644
--- a/src/hud.c
+++ b/src/hud.c
@@ -81,7 +81,7 @@ DECL_VFUNC_DYN(struct ISurface, void, DrawPolyLine, int *, int *, int)
DECL_VFUNC_DYN(struct ISurface, void, DrawSetTextFont, struct handlewrap)
DECL_VFUNC_DYN(struct ISurface, void, DrawSetTextColor, struct rgba)
DECL_VFUNC_DYN(struct ISurface, void, DrawSetTextPos, int, int)
-DECL_VFUNC_DYN(struct ISurface, void, DrawPrintText, hud_wchar *, int, int)
+DECL_VFUNC_DYN(struct ISurface, void, DrawPrintText, const hud_wchar *, int, int)
DECL_VFUNC_DYN(struct ISurface, void, GetScreenSize, int *, int *)
DECL_VFUNC_DYN(struct ISurface, int, GetFontTall, struct handlewrap)
DECL_VFUNC_DYN(struct ISurface, int, GetCharacterWidth, struct handlewrap, int)
@@ -127,8 +127,8 @@ void hud_drawpolyline(int *x, int *y, int npoints, struct rgba colour) {
DrawPolyLine(matsurf, x, y, npoints);
}
-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) {
DrawSetTextFont(matsurf, (struct handlewrap){font});
DrawSetTextPos(matsurf, x, y);
DrawSetTextColor(matsurf, colour);