summaryrefslogtreecommitdiff
path: root/gfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx.h')
-rw-r--r--gfx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx.h b/gfx.h
index 9dcf01296..58cf6dea9 100644
--- a/gfx.h
+++ b/gfx.h
@@ -69,8 +69,10 @@ bool ChangeResInGame(int w, int h);
void ToggleFullScreen(const bool full_screen);
/* gfx.c */
+#define ASCII_LETTERSTART 32
VARDEF int _stringwidth_base;
VARDEF byte _stringwidth_table[0x2A0];
+static inline byte GetCharacterWidth(int key) { return _stringwidth_table[key - ASCII_LETTERSTART];}
VARDEF DrawPixelInfo _screen;
VARDEF DrawPixelInfo *_cur_dpi;