add bForceRecreateWindow

This commit is contained in:
Glenn Maynard
2006-01-15 00:55:27 +00:00
parent 989fe982b7
commit 76dca9fb6f
2 changed files with 3 additions and 3 deletions
@@ -261,9 +261,9 @@ void GraphicsWindow::CreateGraphicsWindow( const VideoModeParams &p )
/* Set the final window size, set the window text and icon, and then unhide the
* window. */
void GraphicsWindow::ConfigureGraphicsWindow( const VideoModeParams &p )
void GraphicsWindow::ConfigureGraphicsWindow( const VideoModeParams &p, bool bForceRecreateWindow )
{
if( g_hWndMain == NULL )
if( g_hWndMain == NULL || bForceRecreateWindow )
CreateGraphicsWindow( p );
ASSERT( g_hWndMain );
@@ -19,7 +19,7 @@ namespace GraphicsWindow
CString SetScreenMode( const VideoModeParams &p );
void CreateGraphicsWindow( const VideoModeParams &p );
void DestroyGraphicsWindow();
void ConfigureGraphicsWindow( const VideoModeParams &p );
void ConfigureGraphicsWindow( const VideoModeParams &p, bool bForceRecreateWindow = false );
void GetDisplayResolutions( DisplayResolutions &out );