aboutsummaryrefslogtreecommitdiff
path: root/src/egl.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-07-22 04:12:02 +0200
committerdec05eba <dec05eba@protonmail.com>2023-07-22 04:12:02 +0200
commit60de2c47bef3f6ad805c3d0ec0cffa217149e525 (patch)
treec3f0c4cfe9279c4cbf03d7b8f52b6fa2248dc1dc /src/egl.c
parent22a0a01553debd549e1f1f0058bc516cec28196b (diff)
Use correct offset for combined plane monitor capture
Diffstat (limited to 'src/egl.c')
-rw-r--r--src/egl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/egl.c b/src/egl.c
index ad51c4c..d15a3ea 100644
--- a/src/egl.c
+++ b/src/egl.c
@@ -128,13 +128,13 @@ static void frame_start(void *data, struct zwlr_export_dmabuf_frame_v1 *frame,
uint32_t width, uint32_t height, uint32_t offset_x, uint32_t offset_y,
uint32_t buffer_flags, uint32_t flags, uint32_t format,
uint32_t mod_high, uint32_t mod_low, uint32_t num_objects) {
- (void)offset_x;
- (void)offset_y;
(void)buffer_flags;
(void)flags;
(void)num_objects;
gsr_egl *egl = data;
//fprintf(stderr, "frame start %p, width: %u, height: %u, offset x: %u, offset y: %u, format: %u, num objects: %u\n", (void*)frame, width, height, offset_x, offset_y, format, num_objects);
+ egl->x = offset_x;
+ egl->y = offset_y;
egl->width = width;
egl->height = height;
egl->pixel_format = format;