diff options
author | Bogdan Gheorghe <gheorghe@ca.ibm.com> | 2011-08-05 15:25:01 -0400 |
---|---|---|
committer | Bogdan Gheorghe <gheorghe@ca.ibm.com> | 2011-08-05 15:25:01 -0400 |
commit | 9c4bff2323bd0415c8033ce7de629d361e3ac9e3 (patch) | |
tree | 58cdb4d5aef2f90efa9d90845912a00a27112413 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java | |
parent | ea9da011382c7ec93bcd569f034b6dd753cfdd96 (diff) | |
download | eclipse.platform.swt-9c4bff2323bd0415c8033ce7de629d361e3ac9e3.tar.gz eclipse.platform.swt-9c4bff2323bd0415c8033ce7de629d361e3ac9e3.tar.xz eclipse.platform.swt-9c4bff2323bd0415c8033ce7de629d361e3ac9e3.zip |
349354 - Need to call gdk_cairo_reset_clip when resetting clipping
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java index 4cb4b66876..cd51b3b4fd 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java @@ -3163,7 +3163,11 @@ static void setCairoPatternColor(int /*long*/ pattern, int offset, Color c, int void setCairoClip(int /*long*/ damageRgn, int /*long*/ clipRgn) { int /*long*/ cairo = data.cairo; - Cairo.cairo_reset_clip(cairo); + if (OS.GTK_VERSION < OS.VERSION(2,18,0)) { + Cairo.cairo_reset_clip(cairo); + } else { + OS.gdk_cairo_reset_clip(cairo, data.drawable); + } if (damageRgn != 0) { double[] matrix = new double[6]; Cairo.cairo_get_matrix(cairo, matrix); |