summaryrefslogtreecommitdiff
path: root/src/gfx_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-23 15:32:09 +0000
committerrubidium <rubidium@openttd.org>2013-06-23 15:32:09 +0000
commitd724088a1c346ee2e01e5cdec9c9ca4a92e8c12b (patch)
treee83851727b23e3064be5c56a6202bf28b9016212 /src/gfx_func.h
parenteb4388f4f3c9c120cd5d25f2da98859aaed151ec (diff)
downloadopenttd-d724088a1c346ee2e01e5cdec9c9ca4a92e8c12b.tar.xz
(svn r25442) -Codechange: move height and ascender information into the FontCache instances
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r--src/gfx_func.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h
index 42c2b3a5e..3dcba4497 100644
--- a/src/gfx_func.h
+++ b/src/gfx_func.h
@@ -153,17 +153,7 @@ byte GetCharacterWidth(FontSize size, uint32 key);
byte GetDigitWidth(FontSize size = FS_NORMAL);
void GetBroadestDigit(uint *front, uint *next, FontSize size = FS_NORMAL);
-/**
- * Get height of a character for a given font size.
- * @param size Font size to get height of
- * @return Height of characters in the given font (pixels)
- */
-static inline byte GetCharacterHeight(FontSize size)
-{
- assert(size < FS_END);
- extern int _font_height[FS_END];
- return _font_height[size];
-}
+int GetCharacterHeight(FontSize size);
/** Height of characters in the small (#FS_SMALL) font. */
#define FONT_HEIGHT_SMALL (GetCharacterHeight(FS_SMALL))