WinRT: enabled the Win10-Store Cert Kit bug-workaround, for Windows 8.0 apps
authorDavid Ludwig
Sun, 06 Dec 2015 18:42:30 -0500
changeset 9951839a45509496
parent 9950 6cc7e0682758
child 9952 54b2eeb48c7d
WinRT: enabled the Win10-Store Cert Kit bug-workaround, for Windows 8.0 apps
src/video/winrt/SDL_winrtvideo.cpp
     1.1 --- a/src/video/winrt/SDL_winrtvideo.cpp	Sun Dec 06 18:33:43 2015 -0500
     1.2 +++ b/src/video/winrt/SDL_winrtvideo.cpp	Sun Dec 06 18:42:30 2015 -0500
     1.3 @@ -330,12 +330,14 @@
     1.4                 happens, and use a hackish means to create a reasonable-as-possible
     1.5                 'display mode'.  -- DavidL
     1.6              */
     1.7 -#if SDL_WINRT_USE_APPLICATIONVIEW
     1.8              if (adapterIndex == 0 && outputIndex == 0) {
     1.9                  SDL_VideoDisplay display;
    1.10                  SDL_DisplayMode mode;
    1.11 +#if (NTDDI_VERSION >= NTDDI_WIN10) || (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
    1.12                  ApplicationView ^ appView = ApplicationView::GetForCurrentView();
    1.13 +#else
    1.14                  CoreWindow ^ coreWin = CoreWindow::GetForCurrentThread();
    1.15 +#endif
    1.16                  SDL_zero(display);
    1.17                  SDL_zero(mode);
    1.18                  display.name = "DXGI Display-detection Workaround";
    1.19 @@ -368,7 +370,6 @@
    1.20                      return SDL_SetError("Failed to apply DXGI Display-detection workaround");
    1.21                  }
    1.22              }
    1.23 -#endif  // SDL_WINRT_USE_APPLICATIONVIEW
    1.24  
    1.25              break;
    1.26          }