File diff r27105:4235592d0ef1 → r27106:2d95beb51290
src/fontcache/spritefontcache.cpp
Show inline comments
 
@@ -113,14 +113,14 @@ const Sprite *SpriteFontCache::GetGlyph(
 
{
 
	SpriteID sprite = this->GetUnicodeGlyph(key);
 
	if (sprite == 0) sprite = this->GetUnicodeGlyph('?');
 
	return GetSprite(sprite, ST_FONT);
 
	return GetSprite(sprite, SpriteType::Font);
 
}
 

	
 
uint SpriteFontCache::GetGlyphWidth(GlyphID key)
 
{
 
	SpriteID sprite = this->GetUnicodeGlyph(key);
 
	if (sprite == 0) sprite = this->GetUnicodeGlyph('?');
 
	return SpriteExists(sprite) ? GetSprite(sprite, ST_FONT)->width + ScaleSpriteTrad(this->fs != FS_NORMAL ? 1 : 0) : 0;
 
	return SpriteExists(sprite) ? GetSprite(sprite, SpriteType::Font)->width + ScaleSpriteTrad(this->fs != FS_NORMAL ? 1 : 0) : 0;
 
}
 

	
 
bool SpriteFontCache::GetDrawGlyphShadow()