diff options
author | glx <glx@openttd.org> | 2019-01-17 17:50:54 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-01-17 21:56:12 +0000 |
commit | 1623cb553b7d299d0115034609763b6f3063680f (patch) | |
tree | b8fe83eea0bc54d2d944baed7bdaabf03886c472 | |
parent | 6535abb88bd3c598517641b49569b480c3282cdf (diff) | |
download | openttd-1623cb553b7d299d0115034609763b6f3063680f.tar.xz |
Fix #7032: use the same mode to load and render glyphs
-rw-r--r-- | src/fontcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp index 55da0c55c..98e8bdf41 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -546,7 +546,7 @@ const Sprite *FreeTypeFontCache::GetGlyph(GlyphID key) return glyph->sprite; } } - FT_Load_Glyph(this->face, key, FT_LOAD_DEFAULT); + FT_Load_Glyph(this->face, key, aa ? FT_LOAD_TARGET_NORMAL : FT_LOAD_TARGET_MONO); FT_Render_Glyph(this->face->glyph, aa ? FT_RENDER_MODE_NORMAL : FT_RENDER_MODE_MONO); /* Despite requesting a normal glyph, FreeType may have returned a bitmap */ |