summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2014-10-14 14:16:38 +0000
committerpeter1138 <peter1138@openttd.org>2014-10-14 14:16:38 +0000
commit2eb38ef9e950687c59d44d9805f1254f9f9bd04a (patch)
treea756b10f389610906eed748376b82087748f84c0
parentdeca49f4c6a2e759515d51e49ff7a9220daf002e (diff)
downloadopenttd-2eb38ef9e950687c59d44d9805f1254f9f9bd04a.tar.xz
(svn r27015) -Codechange: Also scale the character spacing for fonts without shadow.
-rw-r--r--src/fontcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index c8aca9852..8aae4d783 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -183,7 +183,7 @@ uint SpriteFontCache::GetGlyphWidth(GlyphID key)
{
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