WinRT: fixed bug whereby a Win8.x app's SDL_Window wasn't getting de-marked as maximized (on window restore)
authorDavid Ludwig <dludwig@pobox.com>
Thu, 31 Dec 2015 01:50:30 -0500
changeset 99922117f13501e8
parent 9991 5843ea14ca5c
child 9993 e05d46c27ce3
WinRT: fixed bug whereby a Win8.x app's SDL_Window wasn't getting de-marked as maximized (on window restore)
src/core/winrt/SDL_winrtapp_direct3d.cpp
     1.1 --- a/src/core/winrt/SDL_winrtapp_direct3d.cpp	Thu Dec 31 01:40:50 2015 -0500
     1.2 +++ b/src/core/winrt/SDL_winrtapp_direct3d.cpp	Thu Dec 31 01:50:30 2015 -0500
     1.3 @@ -226,6 +226,8 @@
     1.4                     window event, if and when it is needed!
     1.5                  */
     1.6                  SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
     1.7 +            } else {
     1.8 +                SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESTORED, 0, 0);
     1.9              }
    1.10  
    1.11              WINRT_UpdateWindowFlags(window, SDL_WINDOW_FULLSCREEN_DESKTOP);