diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-03-11 19:01:46 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-03-11 19:01:46 +0100 |
commit | ba096a3ba7815eff41159eedfb646c97451fbef7 (patch) | |
tree | 01bea3fea22cec135000e4aa1eaeea16406b56d5 /src/capture/nvfbc.c | |
parent | 1292892d4dd9c94fccdead7afd58e38c85234bb9 (diff) |
Add -cursor option to not record cursor
Diffstat (limited to 'src/capture/nvfbc.c')
-rw-r--r-- | src/capture/nvfbc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/capture/nvfbc.c b/src/capture/nvfbc.c index 7ba0438..5acf083 100644 --- a/src/capture/nvfbc.c +++ b/src/capture/nvfbc.c @@ -272,6 +272,8 @@ static int gsr_capture_nvfbc_start(gsr_capture *cap, AVCodecContext *video_codec create_capture_params.dwVersion = NVFBC_CREATE_CAPTURE_SESSION_PARAMS_VER; create_capture_params.eCaptureType = NVFBC_CAPTURE_TO_GL; create_capture_params.bWithCursor = (!direct_capture || supports_direct_cursor) ? NVFBC_TRUE : NVFBC_FALSE; + if(!cap_nvfbc->params.record_cursor) + create_capture_params.bWithCursor = false; if(capture_region) create_capture_params.captureBox = (NVFBC_BOX){ x, y, width, height }; create_capture_params.eTrackingType = tracking_type; |