move stats formatting to RageDisplay, so renderers can add custom stats

This commit is contained in:
Glenn Maynard
2004-11-05 04:15:06 +00:00
parent e0b211aca6
commit 3d084e2a2c
3 changed files with 11 additions and 9 deletions
+1 -9
View File
@@ -335,15 +335,7 @@ void ScreenSystemLayer::Update( float fDeltaTime )
if( PREFSMAN && PREFSMAN->m_bShowStats )
{
m_textStats.SetDiffuse( RageColor(1,1,1,0.7f) );
/* If FPS == 0, we don't have stats yet. */
if(DISPLAY->GetFPS())
m_textStats.SetText( ssprintf(
"%i FPS\n%i av FPS\n%i VPF",
DISPLAY->GetFPS(), DISPLAY->GetCumFPS(),
DISPLAY->GetVPF()) );
else
m_textStats.SetText( "-- FPS\n-- av FPS\n-- VPF" );
m_textStats.SetText( DISPLAY->GetStats() );
} else
m_textStats.SetDiffuse( RageColor(1,1,1,0) ); /* hide */