From 0a76e7ff0ae664e4926a5e6c21bdffd8c12d769e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 16 Mar 2007 03:15:24 +0000 Subject: [PATCH] alignment fix --- stepmania/src/BitmapText.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/BitmapText.cpp b/stepmania/src/BitmapText.cpp index b2eb7016ea..10838a1dce 100644 --- a/stepmania/src/BitmapText.cpp +++ b/stepmania/src/BitmapText.cpp @@ -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();