LoadBG -> Load( Sprite::SongBGTexture() )

This commit is contained in:
Glenn Maynard
2006-07-28 00:32:39 +00:00
parent 3439a2e546
commit 5df5c3e7b8
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -66,7 +66,7 @@ void BGAnimationLayer::LoadFromAniLayerFile( const RString& sPath )
sSongBGPath = THEME->GetPathG("Common","fallback background");
Sprite* pSprite = new Sprite;
pSprite->LoadBG( sSongBGPath );
pSprite->Load( Sprite::SongBGTexture(sSongBGPath) );
pSprite->StretchTo( FullScreenRectF );
this->AddChild( pSprite );
@@ -162,7 +162,7 @@ void BGAnimationLayer::LoadFromAniLayerFile( const RString& sPath )
this->AddChild( pSprite );
RageTextureID ID(sPath);
ID.bStretch = true;
pSprite->LoadBG( ID );
pSprite->Load( Sprite::SongBGTexture(ID) );
pSprite->StretchTo( FullScreenRectF );
pSprite->SetCustomTextureRect( RectF(0,0,1,1) );
@@ -181,7 +181,7 @@ void BGAnimationLayer::LoadFromAniLayerFile( const RString& sPath )
m_Type = TYPE_SPRITE;
Sprite* pSprite = new Sprite;
this->AddChild( pSprite );
pSprite->LoadBG( sPath );
pSprite->Load( Sprite::SongBGTexture(sPath) );
const RectF StretchedFullScreenRectF(
FullScreenRectF.left-200,
FullScreenRectF.top-200,
+2 -2
View File
@@ -274,12 +274,12 @@ Actor *MakeVisualization( const RString &sVisPath )
(pSong && pSong->HasBackground()) ? pSong->GetBackgroundPath() : THEME->GetPathG("Common","fallback background");
Sprite* pSprite = new Sprite;
pSprite->LoadBG( sSongBGPath );
pSprite->Load( Sprite::SongBGTexture(sSongBGPath) );
pSprite->StretchTo( FullScreenRectF );
pFrame->AddChild( pSprite );
pSprite = new Sprite;
pSprite->LoadBG( sVisPath );
pSprite->Load( Sprite::SongBGTexture(sVisPath) );
pSprite->StretchTo( FullScreenRectF );
pSprite->SetBlendMode( BLEND_ADD );
pFrame->AddChild( pSprite );