mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r27015) -Codechange: Also scale the character spacing for fonts without shadow.
This commit is contained in:
parent
ba96233b6e
commit
d549ed2d6c
@ -183,7 +183,7 @@ uint SpriteFontCache::GetGlyphWidth(GlyphID key)
|
|||||||
{
|
{
|
||||||
SpriteID sprite = this->GetUnicodeGlyph(key);
|
SpriteID sprite = this->GetUnicodeGlyph(key);
|
||||||
if (sprite == 0) sprite = this->GetUnicodeGlyph('?');
|
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
|
int SpriteFontCache::GetHeight() const
|
||||||
|
Loading…
Reference in New Issue
Block a user