Commit 7203b721 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

gdk: Fix gdk_cairo_region_create_from_surface() with device offsets

parent c6e58f84
......@@ -425,7 +425,7 @@ gdk_cairo_region_create_from_surface (cairo_surface_t *surface)
image = cairo_image_surface_create (CAIRO_FORMAT_A1,
extents.width, extents.height);
cr = cairo_create (image);
cairo_set_source_surface (cr, surface, extents.x, extents.y);
cairo_set_source_surface (cr, surface, -extents.x, -extents.y);
cairo_paint (cr);
cairo_destroy (cr);
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