From: Alexander Larsson <al...@redhat.com> The damage region is in compositor coords, we need to scale it by the output scale when using the damage to read output buffer data. --- src/screenshooter.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/src/screenshooter.c b/src/screenshooter.c index d088cf7..83ad192 100644 --- a/src/screenshooter.c +++ b/src/screenshooter.c @@ -330,6 +330,11 @@ transform_rect(struct weston_output *output, pixman_box32_t *r) default: break; } + + r->x1 *= output->scale; + r->y1 *= output->scale; + r->x2 *= output->scale; + r->y2 *= output->scale; } static void -- 1.8.1.4 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel