[gtk+] gdk: Fix gdk_cairo_region_create_from_surface() with device offsets
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Fix gdk_cairo_region_create_from_surface() with device offsets
- Date: Thu, 30 Sep 2010 14:27:53 +0000 (UTC)
commit 7203b721936f9671c52fa0ac8415a5d83e210b1a
Author: Benjamin Otte <otte redhat com>
Date: Thu Sep 30 16:24:11 2010 +0200
gdk: Fix gdk_cairo_region_create_from_surface() with device offsets
gdk/gdkcairo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 026fef5..c1670eb 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]