From 796ac96c5014aecd8da27f5dc4ded6326f5ef0b5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 12 Jul 2005 23:16:03 +0000 Subject: [PATCH] remove Update. DISPLAY has enough places to hook, and doesn't need access to the gameplay timer. Do this stuff in EndFrame instead. --- stepmania/src/RageDisplay_D3D.cpp | 7 ++----- stepmania/src/RageDisplay_D3D.h | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index 84977aa757..ba5260b90e 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -279,11 +279,6 @@ CString RageDisplay_D3D::Init( VideoModeParams p ) return SetVideoMode( p, bIgnore ); } -void RageDisplay_D3D::Update(float fDeltaTime) -{ - GraphicsWindow::Update(); -} - RageDisplay_D3D::~RageDisplay_D3D() { LOG->Trace( "RageDisplay_D3D::~RageDisplay()" ); @@ -650,6 +645,8 @@ void RageDisplay_D3D::EndFrame() g_pd3dDevice->EndScene(); g_pd3dDevice->Present( 0, 0, 0, 0 ); ProcessStatsOnFlip(); + + GraphicsWindow::Update(); } bool RageDisplay_D3D::SupportsTextureFormat( PixelFormat pixfmt, bool realtime ) diff --git a/stepmania/src/RageDisplay_D3D.h b/stepmania/src/RageDisplay_D3D.h index 0a23cc7885..20539564af 100644 --- a/stepmania/src/RageDisplay_D3D.h +++ b/stepmania/src/RageDisplay_D3D.h @@ -9,7 +9,6 @@ public: RageDisplay_D3D(); ~RageDisplay_D3D(); CString Init( VideoModeParams p ); - void Update(float fDeltaTime); void ResolutionChanged(); const PixelFormatDesc *GetPixelFormatDesc(PixelFormat pf) const;