Don't waste time if the background is black.

This commit is contained in:
Glenn Maynard
2003-07-21 18:44:04 +00:00
parent 21a5ecced6
commit aa6edb4bdd
+9
View File
@@ -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() )