From 68038cdf493f9ca20e16673b2715ecce0a625136 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 17 May 2003 23:11:16 +0000 Subject: [PATCH] temporary hack to fix up cdtitle dimming --- stepmania/src/ScreenSelectMusic.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenSelectMusic.cpp b/stepmania/src/ScreenSelectMusic.cpp index 6db8a32420..f6ee037f0d 100644 --- a/stepmania/src/ScreenSelectMusic.cpp +++ b/stepmania/src/ScreenSelectMusic.cpp @@ -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) );