force hot pinking for banners

This commit is contained in:
Glenn Maynard
2003-01-22 04:16:05 +00:00
parent 4432b01dd8
commit 570bea0659
+10 -1
View File
@@ -61,6 +61,7 @@ void Banner::SetScrolling( bool bScroll, float Percent)
/* Set up the texture coord rects for the current state. */
Update(0);
}
#include "RageLog.h"
void Banner::LoadFromSong( Song* pSong ) // NULL means no song
{
@@ -68,8 +69,16 @@ void Banner::LoadFromSong( Song* pSong ) // NULL means no song
Sprite::TurnShadowOff();
LOG->Trace("xxxxxxx");
if( pSong == NULL ) LoadFallback();
else if( pSong->HasBanner() ) Load( pSong->GetBannerPath() );
else if( pSong->HasBanner() )
{
/* Song banners often have HOT PINK color keys. */
LOG->Trace("xxxxxxx 2 %s", pSong->GetBannerPath().GetString());
RageTextureID ID(pSong->GetBannerPath());
ID.bHotPinkColorKey = true;
Load( ID );
}
else if( PREFSMAN->m_bUseBGIfNoBanner && pSong->HasBackground() ) Load( pSong->GetBackgroundPath() );
else LoadFallback();
}