Fixed restoring a window that was maximized then minimized, then restored.

Sam Lantinga 2017-05-16 17:48:57 -07:00
parent ccf0566ca4
commit 772407627b
1 changed files with 2 additions and 0 deletions

View File

@ -807,6 +807,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (wParam) {
case SIZE_MAXIMIZED:
SDL_SendWindowEvent(data->window,
SDL_WINDOWEVENT_RESTORED, 0, 0);
SDL_SendWindowEvent(data->window,
SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
break;