merge old CreateGraphicsWindow

This commit is contained in:
Glenn Maynard
2006-01-15 01:10:45 +00:00
parent 61654be8de
commit 692cee7ddc
@@ -224,7 +224,13 @@ static int GetWindowStyle( bool bWindowed )
return WS_POPUP;
}
static void 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, bool bForceRecreateWindow )
{
g_CurrentParams = p;
if( g_hWndMain == NULL || bForceRecreateWindow )
{
int iWindowStyle = GetWindowStyle( p.windowed );
@@ -252,17 +258,6 @@ static void CreateGraphicsWindow( const VideoModeParams &p )
g_HDC = GetDC( g_hWndMain );
}
/* Set the final window size, set the window text and icon, and then unhide the
* window. */
void GraphicsWindow::ConfigureGraphicsWindow( const VideoModeParams &p, bool bForceRecreateWindow )
{
g_CurrentParams = p;
if( g_hWndMain == NULL || bForceRecreateWindow )
CreateGraphicsWindow( p );
ASSERT( g_hWndMain );
/* Update the window title. */
do
{