diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-03-14 08:54:12 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-03-14 08:54:12 +0100 |
commit | 190c775a08ca092ac0145ce3483a421bfdc940c6 (patch) | |
tree | 8621fcac6819153efcc5f47773b64b9155864fe7 /src/capture | |
parent | bab9a0560d15e7e1621469cf8db3e70bc29833b6 (diff) |
Fix screenshot of window not working after latest change5.3.1
Diffstat (limited to 'src/capture')
-rw-r--r-- | src/capture/nvfbc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/capture/nvfbc.c b/src/capture/nvfbc.c index 188b321..b6a3671 100644 --- a/src/capture/nvfbc.c +++ b/src/capture/nvfbc.c @@ -27,7 +27,7 @@ typedef struct { NVFBC_TOGL_SETUP_PARAMS setup_params; bool supports_direct_cursor; - uint32_t x, y, width, height; + uint32_t width, height; NVFBC_TRACKING_TYPE tracking_type; uint32_t output_id; uint32_t tracking_width, tracking_height; @@ -285,11 +285,6 @@ static int gsr_capture_nvfbc_start(gsr_capture *cap, gsr_capture_metadata *captu if(!gsr_capture_nvfbc_load_library(cap)) return -1; - self->x = max_int(self->params.pos.x, 0); - self->y = max_int(self->params.pos.y, 0); - self->width = max_int(self->params.size.x, 0); - self->height = max_int(self->params.size.y, 0); - self->supports_direct_cursor = false; int driver_major_version = 0; int driver_minor_version = 0; |