Skip to content

Commit

Permalink
[fonts] no need to clamp ch->offsetY at 0 now that the real culprit i…
Browse files Browse the repository at this point in the history
…s found
  • Loading branch information
Jonathan Marshall committed Oct 31, 2012
1 parent 3e3cad7 commit 1e2d14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/guilib/GUIFontTTF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ bool CGUIFontTTFBase::CacheCharacter(wchar_t letter, uint32_t style, Character *
// set the character in our table
ch->letterAndStyle = (style << 16) | letter;
ch->offsetX = (short)bitGlyph->left;
ch->offsetY = (short)max((short)m_cellBaseLine - bitGlyph->top, 0);
ch->offsetY = (short)m_cellBaseLine - bitGlyph->top;
ch->left = (float)m_posX + ch->offsetX;
ch->top = (float)m_posY + ch->offsetY;
ch->right = ch->left + bitmap.width;
Expand Down

0 comments on commit 1e2d14e

Please sign in to comment.