diff --git a/stepmania/src/FadingBanner.cpp b/stepmania/src/FadingBanner.cpp index 6fc3972484..be3586a722 100644 --- a/stepmania/src/FadingBanner.cpp +++ b/stepmania/src/FadingBanner.cpp @@ -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 diff --git a/stepmania/src/FadingBanner.h b/stepmania/src/FadingBanner.h index 8651c04eef..fcf7b206ef 100644 --- a/stepmania/src/FadingBanner.h +++ b/stepmania/src/FadingBanner.h @@ -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(); diff --git a/stepmania/src/ScreenSelectMusic.cpp b/stepmania/src/ScreenSelectMusic.cpp index 1bd8ea4740..b5cb5285c1 100644 --- a/stepmania/src/ScreenSelectMusic.cpp +++ b/stepmania/src/ScreenSelectMusic.cpp @@ -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) )