From f386f2a1fcae885967278710fe997c56e2183476 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 18 Dec 2025 23:33:26 +0000 Subject: Size-optimise a few things Saves multiple kilobytes, somehow. Unlikely to make much of a performance difference since it's mostly init/shutdown stuff. --- src/hud.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hud.h') 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); -- cgit v1.2.3-54-g00ecf