allow disabling song backgrounds (without disabling backgrounds entirely

with 0% Brightness, which gives an ugly black background)
This commit is contained in:
Glenn Maynard
2005-10-29 20:59:08 +00:00
parent a7af61d74c
commit f3d55ef26e
4 changed files with 23 additions and 1 deletions
+9 -1
View File
@@ -548,7 +548,15 @@ void BackgroundImpl::LoadFromSong( const Song* pSong )
if( pSong->HasBGChanges() )
if( !PREFSMAN->m_bSongBackgrounds )
{
/* Backgrounds are disabled; just display the song background. */
BackgroundChange change;
change.m_def = m_StaticBackgroundDef;
change.m_fStartBeat = 0;
m_Layer[0].m_aBGChanges.push_back( change );
}
else if( pSong->HasBGChanges() )
{
FOREACH_BackgroundLayer( i )
{