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 d010224650..4794da67bb 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 @@ -2013,9 +2013,9 @@ Rectangle getClippingInPixels() { if (clipRgn != 0) { /* Convert clipping to device space if needed */ if (data.clippingTransform != null) { - clipRgn = convertRgn(clipRgn, data.clippingTransform); + //clipRgn = convertRgn(clipRgn, data.clippingTransform); GDK.gdk_region_intersect(rgn, clipRgn); - GDK.gdk_region_destroy(clipRgn); + //GDK.gdk_region_destroy(clipRgn); } else { GDK.gdk_region_intersect(rgn, clipRgn); } @@ -2025,9 +2025,9 @@ Rectangle getClippingInPixels() { double[] matrix = new double[6]; Cairo.cairo_get_matrix(cairo, matrix); Cairo.cairo_matrix_invert(matrix); - clipRgn = convertRgn(rgn, matrix); - GDK.gdk_region_destroy(rgn); - rgn = clipRgn; + //clipRgn = convertRgn(rgn, matrix); + //GDK.gdk_region_destroy(rgn); + //rgn = clipRgn; } GDK.gdk_region_get_clipbox(rgn, rect); GDK.gdk_region_destroy(rgn); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java index b0768d504c..7ce9037fdd 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java @@ -3527,7 +3527,7 @@ long /*int*/ gtk_draw (long /*int*/ widget, long /*int*/ cairo) { event.setBounds (eventBounds); GCData data = new GCData (); // data.damageRgn = gdkEvent.region; - if (GTK.GTK_VERSION <= OS.VERSION (3, 9, 0)) { + if (true || GTK.GTK_VERSION <= OS.VERSION (3, 9, 0)) { data.cairo = cairo; } GC gc = event.gc = GC.gtk_new (this, data);