aboutsummaryrefslogtreecommitdiff
path: root/include/NvFBCLibrary.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-04-05 16:33:39 +0200
committerdec05eba <dec05eba@protonmail.com>2022-04-05 16:33:39 +0200
commited15405d2fb1ea651cae238f2c339f91bfed32b5 (patch)
tree1629b4b87b6829aec670054e658c837668524437 /include/NvFBCLibrary.hpp
parent6a01677e236b76097e93de1cee06b05ab0aa0efa (diff)
p5 for high
Diffstat (limited to 'include/NvFBCLibrary.hpp')
-rw-r--r--include/NvFBCLibrary.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/NvFBCLibrary.hpp b/include/NvFBCLibrary.hpp
index e26264d..6d115a4 100644
--- a/include/NvFBCLibrary.hpp
+++ b/include/NvFBCLibrary.hpp
@@ -62,7 +62,7 @@ public:
if(!library || !display_to_capture || !display_width || !display_height || fbc_handle_created)
return false;
- const bool capture_region = (x > 0 && y > 0 && width > 0 && height > 0);
+ const bool capture_region = (x > 0 || y > 0 || width > 0 || height > 0);
NVFBCSTATUS status;
NVFBC_TRACKING_TYPE tracking_type;
@@ -130,7 +130,6 @@ public:
}
create_capture_params.eTrackingType = tracking_type;
create_capture_params.dwSamplingRateMs = 1000 / fps;
- // Cant use this, it breaks when a compositor is used
create_capture_params.bAllowDirectCapture = direct_capture ? NVFBC_TRUE : NVFBC_FALSE;
create_capture_params.bPushModel = direct_capture ? NVFBC_TRUE : NVFBC_FALSE;
if(tracking_type == NVFBC_TRACKING_OUTPUT)