diff --git a/stepmania/src/BitmapText.cpp b/stepmania/src/BitmapText.cpp index a994596324..a3f46dc200 100644 --- a/stepmania/src/BitmapText.cpp +++ b/stepmania/src/BitmapText.cpp @@ -178,21 +178,21 @@ void BitmapText::BuildChars() return; m_size.y = float(m_pFont->GetHeight() * m_wTextLines.size()); - int MinSpacing = 0; + int iMinSpacing = 0; /* The height (from the origin to the baseline): */ - int Padding = max(m_pFont->GetLineSpacing(), MinSpacing) - m_pFont->GetHeight(); + int iPadding = max(m_pFont->GetLineSpacing(), iMinSpacing) - m_pFont->GetHeight(); /* There's padding between every line: */ - m_size.y += Padding * (m_wTextLines.size()-1); + m_size.y += iPadding * (m_wTextLines.size()-1); int iY; // the top position of the first row of characters switch( m_VertAlign ) { case align_top: iY = 0; break; case align_middle: iY = -(int)roundf(m_size.y/2.0f); break; - case align_bottom: iY = -(int)m_size.y; break; - default: ASSERT( false ); return; + case align_bottom: iY = -(int)m_size.y; break; + default: ASSERT( false ); } for( unsigned i=0; i m_wTextLines; + vector m_iLineWidths; // in source pixels + int m_iWrapWidthPixels; // -1 = no wrap + float m_fMaxWidth; + float m_fMaxHeight; + bool m_bRainbow; + + vector m_aVertices; + vector m_pTextures; // recalculate the items in SetText() - RString m_sText; - vector m_wTextLines; - vector m_iLineWidths; // in source pixels - int m_iWrapWidthPixels; // -1 = no wrap - float m_fMaxWidth; - float m_fMaxHeight; - - bool m_bRainbow; - - vector m_aVertices; - vector m_pTextures; - void BuildChars(); void DrawChars(); void UpdateBaseZoom();