(svn r23271) -Codechange: don't repeatedly initialise and free the freetype library

This commit is contained in:
rubidium
2011-11-20 08:08:13 +00:00
parent 5638eaa307
commit 542c61397c
4 changed files with 41 additions and 36 deletions

View File

@@ -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)