mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-29 04:21:03 +08:00
win32: Return 0 from WM_WINDOWPOSCHANGING if a resize is expected
This was accidentally removed while deleting some associated dead code.
This commit is contained in:
@@ -1450,6 +1450,13 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|||||||
break;
|
break;
|
||||||
#endif // WM_GETMINMAXINFO
|
#endif // WM_GETMINMAXINFO
|
||||||
|
|
||||||
|
case WM_WINDOWPOSCHANGING:
|
||||||
|
|
||||||
|
if (data->expected_resize) {
|
||||||
|
returnCode = 0;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case WM_WINDOWPOSCHANGED:
|
case WM_WINDOWPOSCHANGED:
|
||||||
{
|
{
|
||||||
SDL_Window *win;
|
SDL_Window *win;
|
||||||
|
|||||||
Reference in New Issue
Block a user