summaryrefslogtreecommitdiff
path: root/src/fontcache.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-02-25 17:20:02 +0000
committerfrosch <frosch@openttd.org>2012-02-25 17:20:02 +0000
commitdf54f25efe5817e35c4eba9b95c5b8718d3a7551 (patch)
treec439ac8732a6615eb29327a7fb2baa0c7ccd35cb /src/fontcache.cpp
parent3d381403a88387d1599c3a63dd0bdf9bb97a2911 (diff)
downloadopenttd-df54f25efe5817e35c4eba9b95c5b8718d3a7551.tar.xz
(svn r23987) -Fix (r23000): Also reset the font glyph cache when switching blitters.
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r--src/fontcache.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index bed9bc4b0..a8448be4b 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -974,6 +974,14 @@ void UninitFreeType()
_library = NULL;
}
+/**
+ * Reset cached glyphs.
+ */
+void ClearFontCache()
+{
+ ResetGlyphCache(true);
+ ResetGlyphCache(false);
+}
static FT_Face GetFontFace(FontSize size)
{