Commit 7bd640d5da3838e10f6a22fab99692bc1e6f8928

David Ludwig 2015-11-26T02:37:51

WinRT: bug-fix, fullscreen mode wasn't getting reported in Windows 8.0 apps This bug did not occur in Windows 8.1 apps, just Windows 8.0.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/winrt/SDL_winrtvideo.cpp b/src/video/winrt/SDL_winrtvideo.cpp
index 4621d81..1fbd2f4 100644
--- a/src/video/winrt/SDL_winrtvideo.cpp
+++ b/src/video/winrt/SDL_winrtvideo.cpp
@@ -377,7 +377,7 @@ WINRT_DetectWindowFlags(SDL_Window * window)
     if (data->appView) {
         is_fullscreen = data->appView->IsFullScreen;
     }
-#elif (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
+#elif (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP) || (NTDDI_VERSION == NTDDI_WIN8)
     is_fullscreen = true;
 #endif