From a9f12e17880c314bfa5b5f4ecee028719c64a1a2 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Wed, 15 Aug 2007 06:43:11 +0000 Subject: [PATCH] Fix text showing only the first character. --- stepmania/src/ScreenNetSelectBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ScreenNetSelectBase.cpp b/stepmania/src/ScreenNetSelectBase.cpp index 765480d694..b65c4538e9 100644 --- a/stepmania/src/ScreenNetSelectBase.cpp +++ b/stepmania/src/ScreenNetSelectBase.cpp @@ -267,7 +267,7 @@ void ColorBitmapText::SetText( const RString& _sText, const RString& _sAlternate continue; } - char curChar = m_sText[0]; + char curChar = m_sText[i]; int iCharLen = m_pFont->GetLineWidthInSourcePixels( wstring(1, curChar) ); switch( curChar ) @@ -287,7 +287,7 @@ void ColorBitmapText::SetText( const RString& _sText, const RString& _sAlternate SimpleAddLine( sCurrentLine, iLineWidth ); if( iWordWidth > 0 ) iLineWidth = iWordWidth + //Add the width of a space - m_pFont->GetLineWidthInSourcePixels( RStringToWstring( " " ) ); + m_pFont->GetLineWidthInSourcePixels( L" " ); sCurrentLine = sCurrentWord + " "; iWordWidth = 0; sCurrentWord = "";