cleanup, cache
This commit is contained in:
@@ -37,6 +37,11 @@ void FadingBanner::ScaleToClipped( float fWidth, float fHeight )
|
|||||||
m_Banner[i].ScaleToClipped( fWidth, fHeight );
|
m_Banner[i].ScaleToClipped( fWidth, fHeight );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float FadingBanner::GetFadeSeconds() const
|
||||||
|
{
|
||||||
|
return FADE_SECONDS;
|
||||||
|
}
|
||||||
|
|
||||||
void FadingBanner::Update( float fDeltaTime )
|
void FadingBanner::Update( float fDeltaTime )
|
||||||
{
|
{
|
||||||
// update children manually
|
// update children manually
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ public:
|
|||||||
|
|
||||||
bool LoadFromCachedBanner( const CString &path );
|
bool LoadFromCachedBanner( const CString &path );
|
||||||
|
|
||||||
|
float GetFadeSeconds() const;
|
||||||
void SetMovingFast( bool fast ) { m_bMovingFast=fast; }
|
void SetMovingFast( bool fast ) { m_bMovingFast=fast; }
|
||||||
virtual void Update( float fDeltaTime );
|
virtual void Update( float fDeltaTime );
|
||||||
virtual void DrawPrimitives();
|
virtual void DrawPrimitives();
|
||||||
|
|||||||
@@ -676,7 +676,7 @@ void ScreenSelectMusic::CheckBackgroundRequests()
|
|||||||
|
|
||||||
if( g_bBannerWaiting )
|
if( g_bBannerWaiting )
|
||||||
{
|
{
|
||||||
float HighQualTime = THEME->GetMetricF("FadingBanner","FadeSeconds");
|
float HighQualTime = m_Banner.GetFadeSeconds();
|
||||||
|
|
||||||
CString sPath;
|
CString sPath;
|
||||||
if( g_StartedLoadingAt.Ago() >= HighQualTime && m_BackgroundLoader.IsCacheFileFinished(g_sBannerPath, sPath) )
|
if( g_StartedLoadingAt.Ago() >= HighQualTime && m_BackgroundLoader.IsCacheFileFinished(g_sBannerPath, sPath) )
|
||||||
|
|||||||
Reference in New Issue
Block a user