From 7caea1f23aa87fcf525f8e44b36078e960ec7a4c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 26 Nov 2004 19:58:36 +0000 Subject: [PATCH] cleanup (this stuff appears stubbed on xbox) --- stepmania/src/RageDisplay_D3D.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index a907734479..7acbb3ed55 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -482,19 +482,18 @@ CString RageDisplay_D3D::TryVideoMode( VideoModeParams p, bool &bNewDeviceOut ) { if( FindBackBufferType( p.windowed, p.bpp ) == D3DFMT_UNKNOWN ) // no possible back buffer formats return ssprintf( "FindBackBufferType(%i,%i) failed", p.windowed, p.bpp ); // failed to set mode -#if !defined(XBOX) + if( g_hWndMain == NULL ) GraphicsWindow::CreateGraphicsWindow( p ); -#else + +#if defined(XBOX) p.windowed = false; #endif /* Set up and display the window before setting up D3D. If we don't do this, * then setting up a fullscreen window (when we're not coming from windowed) * causes all other windows on the system to be resized to the new resolution. */ -#if !defined(XBOX) GraphicsWindow::ConfigureGraphicsWindow( p ); -#endif ZeroMemory( &g_d3dpp, sizeof(g_d3dpp) );