Changeset - r23168:2540d77c4baf
[Not reviewed]
master
0 1 0
glx - 5 years ago 2019-01-17 16:50:54
glx@openttd.org
Fix #7032: use the same mode to load and render glyphs
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/fontcache.cpp
Show inline comments
 
@@ -546,7 +546,7 @@ const Sprite *FreeTypeFontCache::GetGlyp
 
			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 */
0 comments (0 inline, 0 general)