Skip to content

Commit

Permalink
WinRT: enabled the Win10-Store Cert Kit bug-workaround, for Windows 8…
Browse files Browse the repository at this point in the history
….0 apps
  • Loading branch information
DavidLudwig committed Dec 6, 2015
1 parent a40d49a commit 2b48481
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/video/winrt/SDL_winrtvideo.cpp
Expand Up @@ -330,12 +330,14 @@ WINRT_AddDisplaysForAdapter (_THIS, IDXGIFactory2 * dxgiFactory2, int adapterInd
happens, and use a hackish means to create a reasonable-as-possible
'display mode'. -- DavidL
*/
#if SDL_WINRT_USE_APPLICATIONVIEW
if (adapterIndex == 0 && outputIndex == 0) {
SDL_VideoDisplay display;
SDL_DisplayMode mode;
#if (NTDDI_VERSION >= NTDDI_WIN10) || (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
ApplicationView ^ appView = ApplicationView::GetForCurrentView();
#else
CoreWindow ^ coreWin = CoreWindow::GetForCurrentThread();
#endif
SDL_zero(display);
SDL_zero(mode);
display.name = "DXGI Display-detection Workaround";
Expand Down Expand Up @@ -368,7 +370,6 @@ WINRT_AddDisplaysForAdapter (_THIS, IDXGIFactory2 * dxgiFactory2, int adapterInd
return SDL_SetError("Failed to apply DXGI Display-detection workaround");
}
}
#endif // SDL_WINRT_USE_APPLICATIONVIEW

break;
}
Expand Down

0 comments on commit 2b48481

Please sign in to comment.