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:
@@ -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() );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user