This commit is contained in:
Glenn Maynard
2006-01-24 01:04:53 +00:00
parent 39bf48696a
commit 4dfd0d1d7c
+1 -2
View File
@@ -178,10 +178,9 @@ void BitmapText::BuildChars()
return;
m_size.y = float(m_pFont->GetHeight() * m_wTextLines.size());
int iMinSpacing = 0;
/* The height (from the origin to the baseline): */
int iPadding = max(m_pFont->GetLineSpacing(), iMinSpacing) - m_pFont->GetHeight();
int iPadding = m_pFont->GetLineSpacing() - m_pFont->GetHeight();
/* There's padding between every line: */
m_size.y += iPadding * (m_wTextLines.size()-1);