From f0d662b1b2beba28c06bffc16c05332206e6d378 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 10 Jan 2003 02:52:58 +0000 Subject: [PATCH] round alignment, don't truncate it --- stepmania/src/BitmapText.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/BitmapText.cpp b/stepmania/src/BitmapText.cpp index d7d447d78a..09bfefe5e8 100644 --- a/stepmania/src/BitmapText.cpp +++ b/stepmania/src/BitmapText.cpp @@ -135,7 +135,7 @@ void BitmapText::BuildChars() switch( m_VertAlign ) { case align_top: iY = 0; break; - case align_middle: iY = -TotalHeight/2; break; + case align_middle: iY = -roundf(TotalHeight/2.0f); break; case align_bottom: iY = -TotalHeight; break; default: ASSERT( false ); return; } @@ -150,7 +150,7 @@ void BitmapText::BuildChars() switch( m_HorizAlign ) { case align_left: iX = 0; break; - case align_center: iX = -iLineWidth/2; break; + case align_center: iX = -roundf(iLineWidth/2.0f); break; case align_right: iX = -iLineWidth; break; default: ASSERT( false ); return; }