CreateGraphicsWindow is done by ConfigureGraphicsWindow
This commit is contained in:
@@ -499,10 +499,7 @@ CString RageDisplay_D3D::TryVideoMode( const VideoModeParams &_p, bool &bNewDevi
|
||||
if( FindBackBufferType( p.windowed, p.bpp ) == D3DFMT_UNKNOWN ) // no possible back buffer formats
|
||||
return ssprintf( "FindBackBufferType(%i,%i) failed", p.windowed, p.bpp ); // failed to set mode
|
||||
|
||||
#if !defined(XBOX)
|
||||
if( GraphicsWindow::GetHwnd() == NULL )
|
||||
GraphicsWindow::CreateGraphicsWindow( p );
|
||||
#else
|
||||
#if defined(XBOX)
|
||||
p.windowed = false;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -119,7 +119,6 @@ CString LowLevelWindow_Win32::TryVideoMode( const VideoModeParams &p, bool &bNew
|
||||
/* No. Always create and show the window before changing the video mode.
|
||||
* Otherwise, some other window may have focus, and changing the video mode will
|
||||
* cause that window to be resized. */
|
||||
GraphicsWindow::CreateGraphicsWindow( p );
|
||||
GraphicsWindow::ConfigureGraphicsWindow( p );
|
||||
} else {
|
||||
/* We already have a window. Assume that it's pixel format has already been
|
||||
@@ -176,13 +175,14 @@ CString LowLevelWindow_Win32::TryVideoMode( const VideoModeParams &p, bool &bNew
|
||||
g_HGLRC = NULL;
|
||||
}
|
||||
|
||||
GraphicsWindow::CreateGraphicsWindow( p );
|
||||
// DestroyGraphicsWindowAndOpenGLContext();
|
||||
// GraphicsWindow::CreateGraphicsWindow( p );
|
||||
bNewDeviceOut = true;
|
||||
}
|
||||
|
||||
GraphicsWindow::ConfigureGraphicsWindow( p );
|
||||
/* If we deleted the OpenGL context above, also recreate the window. Otherwise, just
|
||||
* reconfigure it. */
|
||||
GraphicsWindow::ConfigureGraphicsWindow( p, bNewDeviceOut );
|
||||
|
||||
GraphicsWindow::SetVideoModeParams( p );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user