diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index 2f6cd75d05..09c9b63805 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -572,6 +572,9 @@ CString RageDisplay_D3D::TryVideoMode( VideoModeParams p, bool &bNewDeviceOut ) #endif } + /* Recreating the window changes the hwnd. */ + SDL_UpdateHWnd(); + ResolutionChanged(); this->SetDefaultRenderStates(); diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp index 5f66a4108c..4193cf7e9a 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp @@ -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;