merge old CreateGraphicsWindow
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user