diff options
author | Bogdan Gheorghe <gheorghe> | 2011-05-24 19:54:22 +0000 |
---|---|---|
committer | Bogdan Gheorghe <gheorghe> | 2011-05-24 19:54:22 +0000 |
commit | 3dc5d2795cbf10c48766411c227f1429c03d1549 (patch) | |
tree | 6c06a261871300edca19bcaf4df73f33be874ad0 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java | |
parent | 17d7fa6eaa291c972b1a480f8303bd3136b393ca (diff) | |
download | eclipse.platform.swt-3dc5d2795cbf10c48766411c227f1429c03d1549.tar.gz eclipse.platform.swt-3dc5d2795cbf10c48766411c227f1429c03d1549.tar.xz eclipse.platform.swt-3dc5d2795cbf10c48766411c227f1429c03d1549.zip |
345650 - FillGradientRectangle results in screen cheese on x86_64
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java index 8406f6cb66..3f9a5c94f8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java @@ -85,7 +85,7 @@ public abstract class Device implements Drawable { int /*long*/ emptyTab; boolean useXRender; - + boolean useCairo; static boolean CAIRO_LOADED; /* @@ -588,6 +588,11 @@ protected void init () { useXRender = major_versionp[0] > 0 || (major_versionp[0] == 0 && minor_versionp[0] >= 8); } } + + if (OS.GTK_VERSION > OS.VERSION (2, 17, 0) && System.getProperty("org.eclipse.swt.internal.gtk.useCairo") != null) { + useCairo = true; + } + //TODO: Remove; temporary code only boolean fixAIX = OS.IsAIX && OS.PTR_SIZEOF == 8; |