aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIFontTTF.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'guilib/GUIFontTTF.cpp')
-rw-r--r--guilib/GUIFontTTF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/guilib/GUIFontTTF.cpp b/guilib/GUIFontTTF.cpp
index 2fa31b9b28..0f0f4f03c5 100644
--- a/guilib/GUIFontTTF.cpp
+++ b/guilib/GUIFontTTF.cpp
@@ -597,7 +597,7 @@ bool CGUIFontTTFBase::CacheCharacter(wchar_t letter, uint32_t style, Character *
{
CopyCharToTexture(bitGlyph, ch);
}
- m_posX += (unsigned short)max(ch->right - ch->left + ch->offsetX, ch->advance + 1);
+ m_posX += 1 + (unsigned short)max(ch->right - ch->left + ch->offsetX, ch->advance);
m_numChars++;
m_textureScaleX = 1.0f / m_textureWidth;