From 1d32921e1fe246c4372066a5d4bd33ee3bd4db9d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 19 Feb 2004 01:22:56 +0000 Subject: [PATCH] fix diffuse color not being reset after a fade --- stepmania/src/Background.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/Background.cpp b/stepmania/src/Background.cpp index 313b3b744a..05cb68c962 100644 --- a/stepmania/src/Background.cpp +++ b/stepmania/src/Background.cpp @@ -494,7 +494,12 @@ void Background::UpdateCurBGChange( float fCurrentTime ) if( pOld ) pOld->LosingFocus(); if( m_pCurrentBGA ) + { + /* We might have faded this background out in the past. Make sure its diffuse + * color is reset. */ + m_pCurrentBGA->SetDiffuse( RageColor(1,1,1,1) ); m_pCurrentBGA->GainingFocus( change.m_fRate, change.m_bRewindMovie, change.m_bLoop ); + } m_fSecsLeftInFade = m_pFadingBGA!=NULL ? FADE_SECONDS : 0;