fixed "wrong font spacing when zoomed"

This commit is contained in:
Chris Danford
2001-11-30 06:32:52 +00:00
parent f0c0270330
commit a9eec44e4a
+3 -2
View File
@@ -79,11 +79,12 @@ void BitmapText::Draw()
for( int i=0; i<m_sText.GetLength(); i++ ) {
char c = m_sText[i];
float fCharWidthZoomed = m_fCharWidthsInSourcePixels[c] * GetZoom();
SetState( c );
fX += m_fCharWidthsInSourcePixels[c]/2;
fX += fCharWidthZoomed/2;
SetX( fX ); // set X acording to offset
Sprite::Draw();
fX += m_fCharWidthsInSourcePixels[c]/2;
fX += fCharWidthZoomed/2;
}
// set properties back to original