temporary hack to fix up cdtitle dimming

This commit is contained in:
Glenn Maynard
2003-05-17 23:11:16 +00:00
parent 09372ac3f8
commit 68038cdf49
+4 -1
View File
@@ -338,7 +338,10 @@ void ScreenSelectMusic::Update( float fDeltaTime )
float fNewRotation = m_sprCDTitle.GetRotationY()+90*fDeltaTime;
fNewRotation = fmodf( fNewRotation, 360 );
m_sprCDTitle.SetRotationY( fNewRotation );
if( fNewRotation > 90 && fNewRotation <= 270 )
/* Hack: +11 fixes the switch time in the default theme. This will break if
* the sprite is moved. To do this right, we should probably have two sprites,
* one lit and one unlit, with backface culling on. */
if( fNewRotation > 90+11 && fNewRotation <= 270+11 )
m_sprCDTitle.SetDiffuse( RageColor(0.2f,0.2f,0.2f,1) );
else
m_sprCDTitle.SetDiffuse( RageColor(1,1,1,1) );