summaryrefslogtreecommitdiffhomepage
path: root/gamedata
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2024-09-08 14:01:13 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2024-09-08 14:11:09 +0100
commitd1f455ba277df793e2f7c6276cbee0d897b796ce (patch)
tree33a47fefc54778b578a65c09f1cfc5b4282e1b0a /gamedata
parentfed587fee58614570a7a34ea52584357effb817a (diff)
Improve the HUD API slightly
- Add text size measurement (for centring etc.). - Add a wchar_t equivalent since ushort would be wrong on Linux. Avoid actually using wchar.h because it's a big bloaty header, particularly on Windows.
Diffstat (limited to 'gamedata')
-rw-r--r--gamedata/vguimatsurface.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/gamedata/vguimatsurface.txt b/gamedata/vguimatsurface.txt
index a9dc3f2..e35c125 100644
--- a/gamedata/vguimatsurface.txt
+++ b/gamedata/vguimatsurface.txt
@@ -45,5 +45,8 @@ vtidx_GetFontTall
vtidx_GetCharacterWidth
OrangeBoxbased 71
L4D 71
+vtidx_GetTextSize
+ OrangeBoxbased 72
+ L4D 72
# vi: sw=4 ts=4 noet tw=80 cc=80