From 03e11c81a14ff55db1abe083b69f42902fe4bdf1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 14 Jun 2004 03:34:38 +0000 Subject: [PATCH] call SDL_UpdateHWnd --- stepmania/src/RageDisplay_D3D.cpp | 3 +++ stepmania/src/arch/LowLevelWindow/LowLevelWindow_SDL.cpp | 3 +++ 2 files changed, 6 insertions(+) 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;