fix unscrolled banner being displayed for one frame

make sure we include hints when reloading the texture when fading,
or hints may not match and it'll get reloaded
This commit is contained in:
Glenn Maynard
2003-03-16 02:59:34 +00:00
parent b2892caa4e
commit ee10a98b35
+8 -3
View File
@@ -34,15 +34,20 @@ void FadingBanner::DrawPrimitives()
bool FadingBanner::Load( RageTextureID ID )
{
BeforeChange();
return Banner::Load(ID);
if(!Banner::Load(ID))
return false;
Update(0);
return true;
}
void FadingBanner::BeforeChange()
{
// move the back banner to the front in preparation for a cross fade
if( this->GetTexturePath() != "" )
if( this->GetTexture() )
{
m_FrontBanner.Load( this->GetTexturePath() );
m_FrontBanner.Load( this->GetTexture()->GetID() );
m_FrontBanner.SetScrolling( this->IsScrolling(), this->ScrollingPercent() );
}