various cleanup and commenting
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "Banner.h"
|
||||
#include "BannerCache.h"
|
||||
//#include "BackgroundCache.h" // XXX: this is probably a bad idea -aj
|
||||
#include "SongManager.h"
|
||||
#include "RageUtil.h"
|
||||
#include "Song.h"
|
||||
@@ -74,37 +73,6 @@ void Banner::LoadFromCachedBanner( const RString &sPath )
|
||||
LoadFallback();
|
||||
}
|
||||
|
||||
// xxx: move this shit elsewhere yo -aj
|
||||
/*
|
||||
void Banner::LoadFromCachedBackground( const RString &sPath )
|
||||
{
|
||||
if( sPath.empty() )
|
||||
{
|
||||
LoadFallbackBG();
|
||||
return;
|
||||
}
|
||||
|
||||
RageTextureID ID;
|
||||
bool bLowRes = (PREFSMAN->m_BackgroundCache != BGCACHE_FULL);
|
||||
if( !bLowRes )
|
||||
{
|
||||
ID = Sprite::SongBGTexture( sPath );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Try to load the low quality version.
|
||||
ID = BACKGROUNDCACHE->LoadCachedBackground( sPath );
|
||||
}
|
||||
|
||||
if( TEXTUREMAN->IsTextureRegistered(ID) )
|
||||
Load( ID );
|
||||
else if( IsAFile(sPath) )
|
||||
Load( sPath );
|
||||
else
|
||||
LoadFallbackBG();
|
||||
}
|
||||
*/
|
||||
|
||||
void Banner::Update( float fDeltaTime )
|
||||
{
|
||||
Sprite::Update( fDeltaTime );
|
||||
|
||||
Reference in New Issue
Block a user