Skip to content

Commit

Permalink
libobs-winrt: Use better Windows SDK version check
Browse files Browse the repository at this point in the history
Latest Windows SDK has a macro for borderless window capture support.
  • Loading branch information
jpark37 authored and jp9000 committed Jun 30, 2021
1 parent 62d0661 commit 4002995
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libobs-winrt/winrt-capture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static void winrt_capture_device_loss_release(void *data)
capture->item = nullptr;
}

#ifdef NTDDI_WIN10_FE
#if WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0xc0000
static bool winrt_capture_border_toggle_supported()
try {
return winrt::Windows::Foundation::Metadata::ApiInformation::
Expand Down Expand Up @@ -362,7 +362,7 @@ static void winrt_capture_device_loss_rebuild(void *device_void, void *data)
const winrt::Windows::Graphics::Capture::GraphicsCaptureSession session =
frame_pool.CreateCaptureSession(item);

#ifdef NTDDI_WIN10_FE
#if WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0xc0000
if (winrt_capture_border_toggle_supported()) {
winrt::Windows::Graphics::Capture::GraphicsCaptureAccess::
RequestAccessAsync(
Expand Down Expand Up @@ -443,7 +443,7 @@ try {
const winrt::Windows::Graphics::Capture::GraphicsCaptureSession session =
frame_pool.CreateCaptureSession(item);

#ifdef NTDDI_WIN10_FE
#if WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0xc0000
if (winrt_capture_border_toggle_supported()) {
winrt::Windows::Graphics::Capture::GraphicsCaptureAccess::
RequestAccessAsync(
Expand Down

0 comments on commit 4002995

Please sign in to comment.