add bForceRecreateWindow
This commit is contained in:
@@ -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
|
/* Set the final window size, set the window text and icon, and then unhide the
|
||||||
* window. */
|
* 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 );
|
CreateGraphicsWindow( p );
|
||||||
|
|
||||||
ASSERT( g_hWndMain );
|
ASSERT( g_hWndMain );
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace GraphicsWindow
|
|||||||
CString SetScreenMode( const VideoModeParams &p );
|
CString SetScreenMode( const VideoModeParams &p );
|
||||||
void CreateGraphicsWindow( const VideoModeParams &p );
|
void CreateGraphicsWindow( const VideoModeParams &p );
|
||||||
void DestroyGraphicsWindow();
|
void DestroyGraphicsWindow();
|
||||||
void ConfigureGraphicsWindow( const VideoModeParams &p );
|
void ConfigureGraphicsWindow( const VideoModeParams &p, bool bForceRecreateWindow = false );
|
||||||
|
|
||||||
void GetDisplayResolutions( DisplayResolutions &out );
|
void GetDisplayResolutions( DisplayResolutions &out );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user