From e4941be52dac62a27a185ff422e34d8d6ebcad0b Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Thu, 5 May 2005 21:09:09 +0000 Subject: [PATCH] Oops... Forgot about if the color changes as the first character. --- stepmania/src/BitmapText.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/BitmapText.cpp b/stepmania/src/BitmapText.cpp index 4aebbfc849..457466e595 100644 --- a/stepmania/src/BitmapText.cpp +++ b/stepmania/src/BitmapText.cpp @@ -729,7 +729,10 @@ void ColorBitmapText::SetText( const CString& _sText, const CString& _sAlternate sscanf( m_sText.substr( i+7, 2 ).c_str(), "%x", &k ); change.c.b = float( k ) / 255.0f; change.c.a = 1; change.l = iGlyphsSoFar; - m_vColors.push_back( change ); + if ( iGlyphsSoFar == 0 ) + m_vColors[0] = change; + else + m_vColors.push_back( change ); i+=8; continue; }