Commit fc8de3d0 authored by Rui Matos's avatar Rui Matos

clutter/stage: Fix framebuffer capture origin offset (again)

Commit 5fbb4793 was wrong too. What we
really want to do here is getting view relative coordinates given the
view's and the rectangle's global coordinates so we need to subtract
the view's origin from the rectangle's.
parent 3e255566
......@@ -4712,8 +4712,8 @@ capture_view (ClutterStage *stage,
clutter_stage_view_get_layout (view, &view_layout);
cogl_framebuffer_read_pixels_into_bitmap (framebuffer,
view_layout.x + rect->x,
view_layout.y + rect->y,
rect->x - view_layout.x,
rect->y - view_layout.y,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment