Don't waste time if the background is black.
This commit is contained in:
@@ -96,6 +96,9 @@ void Background::LoadFromAniDir( CString sAniDir )
|
|||||||
{
|
{
|
||||||
Unload();
|
Unload();
|
||||||
|
|
||||||
|
if( PREFSMAN->m_fBGBrightness == 0 )
|
||||||
|
return;
|
||||||
|
|
||||||
BGAnimation* pTempBGA;
|
BGAnimation* pTempBGA;
|
||||||
pTempBGA = new BGAnimation;
|
pTempBGA = new BGAnimation;
|
||||||
pTempBGA->LoadFromAniDir( sAniDir );
|
pTempBGA->LoadFromAniDir( sAniDir );
|
||||||
@@ -229,6 +232,9 @@ void Background::LoadFromSong( Song* pSong )
|
|||||||
{
|
{
|
||||||
Unload();
|
Unload();
|
||||||
|
|
||||||
|
if( PREFSMAN->m_fBGBrightness == 0 )
|
||||||
|
return;
|
||||||
|
|
||||||
TEXTUREMAN->DisableOddDimensionWarning();
|
TEXTUREMAN->DisableOddDimensionWarning();
|
||||||
|
|
||||||
const float fXZoom = RECT_BACKGROUND.GetWidth() / (float)SCREEN_WIDTH;
|
const float fXZoom = RECT_BACKGROUND.GetWidth() / (float)SCREEN_WIDTH;
|
||||||
@@ -440,6 +446,9 @@ void Background::Update( float fDeltaTime )
|
|||||||
|
|
||||||
void Background::DrawPrimitives()
|
void Background::DrawPrimitives()
|
||||||
{
|
{
|
||||||
|
if( PREFSMAN->m_fBGBrightness == 0 )
|
||||||
|
return;
|
||||||
|
|
||||||
ActorFrame::DrawPrimitives();
|
ActorFrame::DrawPrimitives();
|
||||||
|
|
||||||
if( IsDangerVisible() )
|
if( IsDangerVisible() )
|
||||||
|
|||||||
Reference in New Issue
Block a user