Fix scoreboard display

This commit is contained in:
Ben
2015-10-15 07:43:13 +08:00
parent a756f9f90e
commit ee60eb9a68

View File

@@ -534,15 +534,13 @@ bool ScalableFont::loadTTF()
MaxHeight = (int)((current_maxheight + (m_type == T_DIGIT ? 40 : 5) +
(m_type == T_BOLD ? 20 : 0))*m_scale);
if (m_type == T_DIGIT)
for(wchar_t c='0'; c<='9'; c++)
{
for(wchar_t c='0'; c<='9'; c++)
{
SFontArea a = getAreaFromCharacter(c, NULL);
m_max_digit_area.width = a.width;
m_max_digit_area.offsety = a.offsety;
m_max_digit_area.bearingx = a.bearingx;
}
SFontArea a = getAreaFromCharacter(c, NULL);
m_max_digit_area.width = a.width;
m_max_digit_area.offsety = a.offsety;
m_max_digit_area.bearingx = a.bearingx;
}
switch (m_type)