summaryrefslogtreecommitdiff
path: root/gdk/gdkcairo.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-09-30 16:24:11 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-30 16:24:41 +0200
commit7203b721936f9671c52fa0ac8415a5d83e210b1a (patch)
tree10b0ab72ce61fe72c0c5745c744a95a48e6963d5 /gdk/gdkcairo.c
parentc6e58f84ee9fed3f173ec0bf3e907cac1750fcd0 (diff)
downloadgtk+-7203b721936f9671c52fa0ac8415a5d83e210b1a.tar.gz
gdk: Fix gdk_cairo_region_create_from_surface() with device offsets
Diffstat (limited to 'gdk/gdkcairo.c')
-rw-r--r--gdk/gdkcairo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 026fef5453..c1670eb566 100644
--- a/gdk/gdkcairo.c
+++ b/gdk/gdkcairo.c
@@ -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);
}