Fix screenshot of window not working after latest change

This commit is contained in:
dec05eba
2025-03-14 08:54:12 +01:00
parent bab9a0560d
commit 190c775a08
5 changed files with 35 additions and 53 deletions

View File

@@ -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;