Fix font height cache being incorrect for FreeType fonts.

This commit is contained in:
Jonathan G Rennison
2016-01-15 18:38:48 +00:00
parent 27e0937eef
commit ee38db6cde

View File

@@ -240,7 +240,13 @@ public:
~FreeTypeFontCache();
virtual SpriteID GetUnicodeGlyph(WChar key) { return this->parent->GetUnicodeGlyph(key); }
virtual void SetUnicodeGlyph(WChar key, SpriteID sprite) { this->parent->SetUnicodeGlyph(key, sprite); }
virtual void InitializeUnicodeGlyphMap() { this->parent->InitializeUnicodeGlyphMap(); }
virtual void InitializeUnicodeGlyphMap()
{
this->parent->InitializeUnicodeGlyphMap();
font_height_cache[this->fs] = this->GetHeight();
}
virtual void ClearFontCache();
virtual const Sprite *GetGlyph(GlyphID key);
virtual uint GetGlyphWidth(GlyphID key);