mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-12 01:24:54 +00:00
Fix #7032: use the same mode to load and render glyphs
This commit is contained in:
parent
6535abb88b
commit
1623cb553b
@ -546,7 +546,7 @@ const Sprite *FreeTypeFontCache::GetGlyph(GlyphID key)
|
|||||||
return glyph->sprite;
|
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);
|
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 */
|
/* Despite requesting a normal glyph, FreeType may have returned a bitmap */
|
||||||
|
Loading…
Reference in New Issue
Block a user