mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-05 14:30:43 +09:00
Fix screenshot of window not working after latest change
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user