From 8feb94f518ca8532bc973f08c2f7455f0eab3e40 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 30 Mar 2025 23:00:54 +0200 Subject: Fix incorrect region when monitor is rotated --- src/capture/ximage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/capture/ximage.c') diff --git a/src/capture/ximage.c b/src/capture/ximage.c index ac00d72..1f86d93 100644 --- a/src/capture/ximage.c +++ b/src/capture/ximage.c @@ -159,7 +159,7 @@ static int gsr_capture_ximage_capture(gsr_capture *cap, gsr_capture_metadata *ca gsr_color_conversion_draw(color_conversion, self->texture_id, target_pos, output_size, - (vec2i){0, 0}, self->capture_size, + (vec2i){0, 0}, self->capture_size, self->capture_size, GSR_ROT_0, false, GSR_SOURCE_COLOR_RGB); if(self->params.record_cursor && self->cursor.visible) { @@ -180,7 +180,7 @@ static int gsr_capture_ximage_capture(gsr_capture *cap, gsr_capture_metadata *ca gsr_color_conversion_draw(color_conversion, self->cursor.texture_id, cursor_pos, (vec2i){self->cursor.size.x * scale.x, self->cursor.size.y * scale.y}, - (vec2i){0, 0}, self->cursor.size, + (vec2i){0, 0}, self->cursor.size, self->cursor.size, GSR_ROT_0, false, GSR_SOURCE_COLOR_RGB); self->params.egl->glDisable(GL_SCISSOR_TEST); -- cgit v1.2.3-70-g09d2