From aa6edb4bdddd8c80020f1850be0b164e85c25697 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 21 Jul 2003 18:44:04 +0000 Subject: [PATCH] Don't waste time if the background is black. --- stepmania/src/Background.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stepmania/src/Background.cpp b/stepmania/src/Background.cpp index b8cf298bdd..7c49fb0fc4 100644 --- a/stepmania/src/Background.cpp +++ b/stepmania/src/Background.cpp @@ -96,6 +96,9 @@ void Background::LoadFromAniDir( CString sAniDir ) { Unload(); + if( PREFSMAN->m_fBGBrightness == 0 ) + return; + BGAnimation* pTempBGA; pTempBGA = new BGAnimation; pTempBGA->LoadFromAniDir( sAniDir ); @@ -229,6 +232,9 @@ void Background::LoadFromSong( Song* pSong ) { Unload(); + if( PREFSMAN->m_fBGBrightness == 0 ) + return; + TEXTUREMAN->DisableOddDimensionWarning(); const float fXZoom = RECT_BACKGROUND.GetWidth() / (float)SCREEN_WIDTH; @@ -440,6 +446,9 @@ void Background::Update( float fDeltaTime ) void Background::DrawPrimitives() { + if( PREFSMAN->m_fBGBrightness == 0 ) + return; + ActorFrame::DrawPrimitives(); if( IsDangerVisible() )