From 0d1f334591901ab3766c2939c343d2cf216ec079 Mon Sep 17 00:00:00 2001 From: jpark37 Date: Mon, 1 Jun 2020 08:28:19 -0700 Subject: [PATCH] libobs-winrt: Require Windows 10 SDK 19041 This will prevent compiling without WGC cursor toggle support. --- libobs-winrt/winrt-capture.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libobs-winrt/winrt-capture.cpp b/libobs-winrt/winrt-capture.cpp index c05787a04..10327f28d 100644 --- a/libobs-winrt/winrt-capture.cpp +++ b/libobs-winrt/winrt-capture.cpp @@ -30,14 +30,10 @@ try { extern "C" EXPORT BOOL winrt_capture_cursor_toggle_supported() try { -#ifdef NTDDI_WIN10_VB return winrt::Windows::Foundation::Metadata::ApiInformation:: IsPropertyPresent( L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsCursorCaptureEnabled"); -#else - return false; -#endif } catch (const winrt::hresult_error &err) { blog(LOG_ERROR, "winrt_capture_cursor_toggle_supported (0x%08X): %ls", err.to_abi(), err.message().c_str()); @@ -345,10 +341,8 @@ static void winrt_capture_device_loss_rebuild(void *device_void, void *data) frame_pool.CreateCaptureSession(item); /* disable cursor capture if possible since ours performs better */ -#ifdef NTDDI_WIN10_VB if (winrt_capture_cursor_toggle_supported()) session.IsCursorCaptureEnabled(false); -#endif capture->item = item; capture->device = device; @@ -420,10 +414,8 @@ try { /* disable cursor capture if possible since ours performs better */ const BOOL cursor_toggle_supported = winrt_capture_cursor_toggle_supported(); -#ifdef NTDDI_WIN10_VB if (cursor_toggle_supported) session.IsCursorCaptureEnabled(false); -#endif struct winrt_capture *capture = new winrt_capture{}; capture->window = window;