From 946fce020b71f96cfb222459936fc40b7f5c33f1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 9 Nov 2005 00:19:02 +0000 Subject: [PATCH] If BeginFrame returns false (eg. we have no drawing context), then EndFrame will never be called. This caused messages to not be handled when we lose focus in fullscreen, so we could never regain focus. --- stepmania/src/RageDisplay_D3D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index 4a14da4d9e..a788dbc2bd 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -641,6 +641,8 @@ int RageDisplay_D3D::GetMaxTextureSize() const bool RageDisplay_D3D::BeginFrame() { + GraphicsWindow::Update(); + #if !defined(XBOX) switch( g_pd3dDevice->TestCooperativeLevel() ) { @@ -672,8 +674,6 @@ void RageDisplay_D3D::EndFrame() g_pd3dDevice->Present( 0, 0, 0, 0 ); FrameLimitAfterVsync(); - GraphicsWindow::Update(); - RageDisplay::EndFrame(); }