aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-03-21 15:11:13 +0100
committerdec05eba <dec05eba@protonmail.com>2024-03-21 15:11:13 +0100
commitb19f88d769958af067c86f6b98b7d579a10acc29 (patch)
tree7eecff5e88317afd484b0affaeb800a7e97925ba /src/main.cpp
parentc2af57a978b29e536260b6bf8440827a4d8e01f7 (diff)
Fix missing color range set in color conversion for nvidia window capture
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 59adf8c..f28cacb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1562,8 +1562,9 @@ static gsr_capture* create_capture_impl(const char *window_str, const char *scre
xcomposite_params.base.window = src_window_id;
xcomposite_params.base.follow_focused = follow_focused;
xcomposite_params.base.region_size = region_size;
- xcomposite_params.overclock = overclock;
+ xcomposite_params.base.color_range = color_range;
xcomposite_params.base.record_cursor = record_cursor;
+ xcomposite_params.overclock = overclock;
capture = gsr_capture_xcomposite_cuda_create(&xcomposite_params);
if(!capture)
_exit(1);