cleanup, cache

This commit is contained in:
Glenn Maynard
2005-02-02 05:19:10 +00:00
parent c25910b6df
commit 75d78a8d1c
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -37,6 +37,11 @@ void FadingBanner::ScaleToClipped( float fWidth, float fHeight )
m_Banner[i].ScaleToClipped( fWidth, fHeight );
}
float FadingBanner::GetFadeSeconds() const
{
return FADE_SECONDS;
}
void FadingBanner::Update( float fDeltaTime )
{
// update children manually
+1
View File
@@ -26,6 +26,7 @@ public:
bool LoadFromCachedBanner( const CString &path );
float GetFadeSeconds() const;
void SetMovingFast( bool fast ) { m_bMovingFast=fast; }
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
+1 -1
View File
@@ -676,7 +676,7 @@ void ScreenSelectMusic::CheckBackgroundRequests()
if( g_bBannerWaiting )
{
float HighQualTime = THEME->GetMetricF("FadingBanner","FadeSeconds");
float HighQualTime = m_Banner.GetFadeSeconds();
CString sPath;
if( g_StartedLoadingAt.Ago() >= HighQualTime && m_BackgroundLoader.IsCacheFileFinished(g_sBannerPath, sPath) )