use Sprite::SongBannerTexture

This commit is contained in:
Glenn Maynard
2004-03-26 07:56:18 +00:00
parent f353bd3206
commit c58fe72382
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ RageTextureID BannerCache::LoadCachedBanner( CString BannerPath )
/* Hack: make sure Banner::Load doesn't change our return value and end up
* reloading. */
ID = Banner::BannerTex(ID);
ID = Sprite::SongBannerTexture(ID);
/* It's not in a texture. Do we have it loaded? */
if( m_BannerPathToImage.find(BannerPath) == m_BannerPathToImage.end() )
+1 -1
View File
@@ -114,7 +114,7 @@ void FadingBanner::LoadFromCachedBanner( const CString &path )
RageTextureID ID;
if( PREFSMAN->m_BannerCache == PrefsManager::BNCACHE_FULL )
ID = Banner::BannerTex( path );
ID = Sprite::SongBannerTexture( path );
else
/* Try to load the low quality version. */
ID = BANNERCACHE->LoadCachedBanner( path );
+3 -3
View File
@@ -29,7 +29,7 @@
#include "GameManager.h"
#include "RageFile.h"
#include "RageTextureManager.h"
#include "Banner.h"
#include "Sprite.h"
#include "ProfileManager.h"
#include "MemoryCardManager.h"
#include "NotesLoaderSM.h"
@@ -298,7 +298,7 @@ void SongManager::PreloadSongImages()
if( !songs[i]->HasBanner() )
continue;
const RageTextureID ID = Banner::BannerTex( songs[i]->GetBannerPath() );
const RageTextureID ID = Sprite::SongBannerTexture( songs[i]->GetBannerPath() );
TEXTUREMAN->CacheTexture( ID );
}
@@ -309,7 +309,7 @@ void SongManager::PreloadSongImages()
if( !courses[i]->HasBanner() )
continue;
const RageTextureID ID = Banner::BannerTex( courses[i]->m_sBannerPath );
const RageTextureID ID = Sprite::SongBannerTexture( courses[i]->m_sBannerPath );
TEXTUREMAN->CacheTexture( ID );
}
}