summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2004-05-27 15:53:16 +0000
committerVeronika Irvine <veronika>2004-05-27 15:53:16 +0000
commit7a49c2532c531698882f59095fef03010fc9f5bc (patch)
tree781d1250b813512f8a90558c0bfaf2c5cdad06a2
parent67f8ea583a7420e07c21e339ec92e00d4716ec34 (diff)
downloadeclipse.platform.swt-7a49c2532c531698882f59095fef03010fc9f5bc.tar.gz
eclipse.platform.swt-7a49c2532c531698882f59095fef03010fc9f5bc.tar.xz
eclipse.platform.swt-7a49c2532c531698882f59095fef03010fc9f5bc.zip
low res displays should not anti-alias
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java
index e2d61d04ec..80f7ba7607 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java
@@ -420,6 +420,11 @@ void onPaint(GC gc) {
gc.setForeground(background);
gc.setBackground(border1);
gc.fillGradientRectangle(x1, size.y - BORDER_STRIPE, curveStart-x1+1, 1, false);
+ } else {
+ // draw solid tail
+ int x1 = Math.max(0, curveStart - CURVE_TAIL);
+ gc.setForeground(border1);
+ gc.drawLine(x1, size.y - BORDER_STRIPE, curveStart+1, size.y - BORDER_STRIPE);
}
// draw border