diff options
author | elupus <elupus@svn> | 2009-11-03 19:50:45 +0000 |
---|---|---|
committer | elupus <elupus@svn> | 2009-11-03 19:50:45 +0000 |
commit | a75c91342150e7d416cad4ec8b6611b627f703af (patch) | |
tree | 60dae805f7294630eeb61dd99b53daae5e389094 /guilib/GUIFontTTF.cpp | |
parent | d3059bf162286380c6fa895b7a0efaec0bedb496 (diff) |
fixed: scrolling text would render with a line on the side of some characters
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@24244 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIFontTTF.cpp')
-rw-r--r-- | guilib/GUIFontTTF.cpp | 2 |
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; |