From 60e0bccef0e227ef530fee9b9998c82cf1290119 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 15 Jan 2006 00:29:34 +0000 Subject: [PATCH] nudge CreateGraphicsWindow and RecreateGraphicsWindow together --- stepmania/src/archutils/Win32/GraphicsWindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/archutils/Win32/GraphicsWindow.cpp b/stepmania/src/archutils/Win32/GraphicsWindow.cpp index 96b6ca752a..334c91c667 100644 --- a/stepmania/src/archutils/Win32/GraphicsWindow.cpp +++ b/stepmania/src/archutils/Win32/GraphicsWindow.cpp @@ -238,14 +238,13 @@ void GraphicsWindow::CreateGraphicsWindow( const VideoModeParams &p ) int iWindowStyle = GetWindowStyle( p.windowed ); AppInstance inst; - g_hWndMain = CreateWindow( g_sClassName, "app", iWindowStyle, + HWND hWnd = CreateWindow( g_sClassName, "app", iWindowStyle, 0, 0, 0, 0, NULL, NULL, inst, NULL ); - if( g_hWndMain == NULL ) + if( hWnd == NULL ) RageException::Throw( "%s", werr_ssprintf( GetLastError(), "CreateWindow" ).c_str() ); + g_hWndMain = hWnd; CrashHandler::SetForegroundWindow( g_hWndMain ); - //SetForegroundWindow( g_hWndMain ); - g_HDC = GetDC( g_hWndMain ); }