summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-20 08:08:13 +0000
committerrubidium <rubidium@openttd.org>2011-11-20 08:08:13 +0000
commit542c61397cc3ad6a56e70221a7a0901bb755a8bd (patch)
tree07bfd73cac0497a36d7aa6f3146d6b537fbe92b2 /src/strings.cpp
parent5638eaa3073bfec338b45d4b951bfa9ab211d91e (diff)
downloadopenttd-542c61397cc3ad6a56e70221a7a0901bb755a8bd.tar.xz
(svn r23271) -Codechange: don't repeatedly initialise and free the freetype library
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index cfa38bf3f..3054dcdaf 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -1750,10 +1750,7 @@ const char *GetCurrentLanguageIsoCode()
*/
bool MissingGlyphSearcher::FindMissingGlyphs(const char **str)
{
-#ifdef WITH_FREETYPE
- UninitFreeType();
InitFreeType();
-#endif
const Sprite *question_mark[FS_END];
for (FontSize size = FS_BEGIN; size < FS_END; size++) {
@@ -1856,7 +1853,6 @@ void CheckForMissingGlyphsInLoadedLanguagePack(bool base_font)
/* Our fallback font does miss characters too, so keep the
* user chosen font as that is more likely to be any good than
* the wild guess we made */
- UninitFreeType();
InitFreeType();
}
}