call SDL_UpdateHWnd

This commit is contained in:
Glenn Maynard
2004-06-14 03:34:38 +00:00
parent b1d49657ab
commit 03e11c81a1
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -572,6 +572,9 @@ CString RageDisplay_D3D::TryVideoMode( VideoModeParams p, bool &bNewDeviceOut )
#endif
}
/* Recreating the window changes the hwnd. */
SDL_UpdateHWnd();
ResolutionChanged();
this->SetDefaultRenderStates();
@@ -169,6 +169,9 @@ CString LowLevelWindow_SDL::TryVideoMode( RageDisplay::VideoModeParams p, bool &
// mySDL_EventState(SDL_OPENGLRESET, SDL_IGNORE);
#endif
/* Recreating the window changes the hwnd. */
SDL_UpdateHWnd();
{
/* Find out what we really got. */
int r,g,b,a, colorbits, depth, stencil;