Skip to content
Permalink
Browse files

Fixed restoring a window that was maximized then minimized, then rest…

…ored.
  • Loading branch information
slouken committed May 17, 2017
1 parent ccf0566 commit 772407627bbab7da81e2fee44a0839fee47f28f8
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/video/windows/SDL_windowsevents.c
@@ -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;

0 comments on commit 7724076

Please sign in to comment.