Fix dependency: Crash.cpp should not depend on GraphicsWindow.

This commit is contained in:
Glenn Maynard
2005-12-31 04:09:56 +00:00
parent 0e599ca582
commit 2120a39d2a
3 changed files with 16 additions and 3 deletions
@@ -8,6 +8,7 @@
#include "DisplayResolutions.h"
#include "arch/ArchHooks/ArchHooks.h"
#include "archutils/Win32/AppInstance.h"
#include "archutils/Win32/Crash.h"
#include "archutils/Win32/WindowIcon.h"
#include "archutils/Win32/GetFileInformation.h"
@@ -241,6 +242,7 @@ void GraphicsWindow::CreateGraphicsWindow( const VideoModeParams &p )
if( g_hWndMain == NULL )
RageException::Throw( "%s", werr_ssprintf( GetLastError(), "CreateWindow" ).c_str() );
CrashHandler::SetForegroundWindow( g_hWndMain );
//SetForegroundWindow( g_hWndMain );
g_HDC = GetDC( g_hWndMain );
@@ -266,6 +268,7 @@ void GraphicsWindow::RecreateGraphicsWindow( const VideoModeParams &p )
DestroyGraphicsWindow();
g_hWndMain = hWnd;
CrashHandler::SetForegroundWindow( g_hWndMain );
g_HDC = GetDC( g_hWndMain );
}
@@ -353,6 +356,7 @@ void GraphicsWindow::DestroyGraphicsWindow()
{
DestroyWindow( g_hWndMain );
g_hWndMain = NULL;
CrashHandler::SetForegroundWindow( g_hWndMain );
}
if( g_hIcon != NULL )