diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-07-22 04:12:02 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-07-22 04:12:02 +0200 |
commit | 60de2c47bef3f6ad805c3d0ec0cffa217149e525 (patch) | |
tree | c3f0c4cfe9279c4cbf03d7b8f52b6fa2248dc1dc /src/egl.c | |
parent | 22a0a01553debd549e1f1f0058bc516cec28196b (diff) |
Use correct offset for combined plane monitor capture
Diffstat (limited to 'src/egl.c')
-rw-r--r-- | src/egl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |