Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 272939 Details for
Bug 531667
[GTK3] Cannot draw Canvas with Control.print(GC)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Removing transformations from GC.getClipping results in OK behaviour.
no_clip_transformations.patch (text/plain), 2.50 KB, created by
Simeon Andreev
on 2018-02-28 11:45:00 EST
(
hide
)
Description:
Removing transformations from GC.getClipping results in OK behaviour.
Filename:
MIME Type:
Creator:
Simeon Andreev
Created:
2018-02-28 11:45:00 EST
Size:
2.50 KB
patch
obsolete
>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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 531667
:
272873
|
272877
|
272878
|
272879
|
272880
|
272912
| 272939 |
272952
|
273229
|
273235
|
273236
|
273319
|
273352
|
273353
|
273386
|
273513
|
273514
|
273917