Don't waste time if the background is black.
This commit is contained in:
@@ -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() )
|
||||
|
||||
Reference in New Issue
Block a user