Skip to content

Commit

Permalink
Fixed restoring a window that was maximized then minimized, then rest…
Browse files Browse the repository at this point in the history
…ored.
  • Loading branch information
slouken committed May 17, 2017
1 parent ccf0566 commit 7724076
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/windows/SDL_windowsevents.c
Expand Up @@ -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;
Expand Down

0 comments on commit 7724076

Please sign in to comment.