Changeset - r21863:63f192e03fe6
[Not reviewed]
master
0 1 0
peter1138 - 10 years ago 2014-10-14 14:16:38
peter1138@openttd.org
(svn r27015) -Codechange: Also scale the character spacing for fonts without shadow.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/fontcache.cpp
Show inline comments
 
@@ -183,7 +183,7 @@ uint SpriteFontCache::GetGlyphWidth(Glyp
 
{
 
	SpriteID sprite = this->GetUnicodeGlyph(key);
 
	if (sprite == 0) sprite = this->GetUnicodeGlyph('?');
 
	return SpriteExists(sprite) ? GetSprite(sprite, ST_FONT)->width + (this->fs != FS_NORMAL) : 0;
 
	return SpriteExists(sprite) ? GetSprite(sprite, ST_FONT)->width + UnScaleByZoom(4 * (this->fs != FS_NORMAL), ZOOM_LVL_GUI) : 0;
 
}
 

	
 
int SpriteFontCache::GetHeight() const
0 comments (0 inline, 0 general)