changeset 1390 | 53a5713cf3f9 |
parent 1350 | 067b22970f19 |
child 1391 | 1325047def14 |
--- a/gfx.h Sun Feb 20 09:05:28 2005 +0000 +++ b/gfx.h Mon Feb 21 18:59:54 2005 +0000 @@ -69,8 +69,10 @@ 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;