diff options
author | rubidium <rubidium@openttd.org> | 2011-11-20 08:08:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-20 08:08:13 +0000 |
commit | 542c61397cc3ad6a56e70221a7a0901bb755a8bd (patch) | |
tree | 07bfd73cac0497a36d7aa6f3146d6b537fbe92b2 /src/fontcache.h | |
parent | 5638eaa3073bfec338b45d4b951bfa9ab211d91e (diff) | |
download | openttd-542c61397cc3ad6a56e70221a7a0901bb755a8bd.tar.xz |
(svn r23271) -Codechange: don't repeatedly initialise and free the freetype library
Diffstat (limited to 'src/fontcache.h')
-rw-r--r-- | src/fontcache.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fontcache.h b/src/fontcache.h index 3445a09ce..a3cceace1 100644 --- a/src/fontcache.h +++ b/src/fontcache.h @@ -23,8 +23,6 @@ void SetUnicodeGlyph(FontSize size, uint32 key, SpriteID sprite); /** Initialize the glyph map */ void InitializeUnicodeGlyphMap(); -void ResetFontSizes(); - #ifdef WITH_FREETYPE struct FreeTypeSettings { @@ -62,8 +60,8 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i #else /* Stub for initializiation */ -static inline void InitFreeType() { ResetFontSizes(); } -static inline void UninitFreeType() { ResetFontSizes(); } +static inline void InitFreeType() { extern void ResetFontSizes(); ResetFontSizes(); } +static inline void UninitFreeType() {} /** Get the Sprite for a glyph */ static inline const Sprite *GetGlyph(FontSize size, uint32 key) |