summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe>2011-05-24 19:54:22 +0000
committerBogdan Gheorghe <gheorghe>2011-05-24 19:54:22 +0000
commit3dc5d2795cbf10c48766411c227f1429c03d1549 (patch)
tree6c06a261871300edca19bcaf4df73f33be874ad0 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
parent17d7fa6eaa291c972b1a480f8303bd3136b393ca (diff)
downloadeclipse.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/GC.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java5
1 files changed, 4 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 ac76e2c42e..4bfaaf3999 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
@@ -2813,6 +2813,9 @@ void init(Drawable drawable, GCData data, int /*long*/ gdkGC) {
this.drawable = drawable;
this.data = data;
handle = gdkGC;
+ if (device.useCairo) {
+ initCairo();
+ }
if ((data.style & SWT.MIRRORED) != 0) {
initCairo();
int /*long*/ cairo = data.cairo;
@@ -2949,7 +2952,7 @@ boolean isIdentity(double[] matrix) {
*/
public void setAdvanced(boolean advanced) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
- if ((data.style & SWT.MIRRORED) != 0) {
+ if ((data.style & SWT.MIRRORED) != 0 || device.useCairo) {
if (!advanced) {
setAlpha(0xFF);
setAntialias(SWT.DEFAULT);