Oops... Forgot about if the color changes as the first character.

This commit is contained in:
Charles Lohr
2005-05-05 21:09:09 +00:00
parent 0f1f6da88e
commit e4941be52d
+3
View File
@@ -729,6 +729,9 @@ 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; sscanf( m_sText.substr( i+7, 2 ).c_str(), "%x", &k ); change.c.b = float( k ) / 255.0f;
change.c.a = 1; change.c.a = 1;
change.l = iGlyphsSoFar; change.l = iGlyphsSoFar;
if ( iGlyphsSoFar == 0 )
m_vColors[0] = change;
else
m_vColors.push_back( change ); m_vColors.push_back( change );
i+=8; i+=8;
continue; continue;