Skip to content

Commit

Permalink
WinRT: fixed bug whereby a Win8.x app's SDL_Window wasn't getting de-…
Browse files Browse the repository at this point in the history
…marked as maximized (on window restore)
  • Loading branch information
DavidLudwig committed Dec 31, 2015
1 parent d8aa066 commit 6823a22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/winrt/SDL_winrtapp_direct3d.cpp
Expand Up @@ -226,6 +226,8 @@ WINRT_ProcessWindowSizeChange() // TODO: Pass an SDL_Window-identifying thing in
window event, if and when it is needed!
*/
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
} else {
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESTORED, 0, 0);
}

WINRT_UpdateWindowFlags(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
Expand Down

0 comments on commit 6823a22

Please sign in to comment.