alignment fix

This commit is contained in:
Glenn Maynard
2007-03-16 03:15:24 +00:00
parent 1d797dcca0
commit 0a76e7ff0a
+4
View File
@@ -173,6 +173,10 @@ void BitmapText::BuildChars()
m_size.x = max( m_size.x, m_iLineWidths.back() );
}
/* Ensure that the width is always even. This maintains pixel alignment; fX below will
* always be an integer. */
m_size.x = QuantizeUp( m_size.x, 2.0f );
m_aVertices.clear();
m_pTextures.clear();