diff options
author | peter1138 <peter1138@openttd.org> | 2006-11-16 22:05:33 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-11-16 22:05:33 +0000 |
commit | 1a4f1c8177f7ee351cb0096e3456d055b97dc60a (patch) | |
tree | 4fb6c0fac873efffc85cef437baa70d50d51fdfb /gfx.h | |
parent | 40d647ddde652bb8f1c7b4215279cc82d01ca38f (diff) | |
download | openttd-1a4f1c8177f7ee351cb0096e3456d055b97dc60a.tar.xz |
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
Diffstat (limited to 'gfx.h')
-rw-r--r-- | gfx.h | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -43,8 +43,8 @@ void GfxScroll(int left, int top, int width, int height, int xo, int yo); // XXX doesn't really belong here, but the only // consumers always use it in conjunction with DoDrawString() -#define UPARROW "\x80" -#define DOWNARROW "\xAA" +#define UPARROW "\xEE\x8A\x80" +#define DOWNARROW "\xEE\x8A\xAA" int DrawStringCentered(int x, int y, StringID str, uint16 color); @@ -96,13 +96,8 @@ void ToggleFullScreen(bool fs); /* gfx.c */ #define ASCII_LETTERSTART 32 extern FontSize _cur_fontsize; -extern byte _stringwidth_table[FS_END][224]; -static inline byte GetCharacterWidth(FontSize size, byte key) -{ - assert(key >= ASCII_LETTERSTART); - return _stringwidth_table[size][key - ASCII_LETTERSTART]; -} +byte GetCharacterWidth(FontSize size, uint32 key); static inline byte GetCharacterHeight(FontSize size) { |