various cleanup and commenting

This commit is contained in:
AJ Kelly
2010-03-14 19:46:05 -05:00
parent cb52191666
commit dca9182138
17 changed files with 101 additions and 138 deletions
-32
View File
@@ -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 );