clutter/stage: Fix framebuffer capture origin offset
Commit f36fa53b0e8b7e2389ea2b63516a2eb00fcc7aa5 had the offset math wrong and the reviewer didn't notice it. https://bugzilla.gnome.org/show_bug.cgi?id=771502
This commit is contained in:
parent
a4c10b6683
commit
5fbb479301
@ -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,
|
||||
view_layout.x + rect->x,
|
||||
view_layout.y + rect->y,
|
||||
COGL_READ_PIXELS_COLOR_BUFFER,
|
||||
bitmap);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user