summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2005-10-24 18:40:21 +0000
committerFelipe Heidrich <fheidric>2005-10-24 18:40:21 +0000
commit0f59ae273771c75506cc9632ccc4b415a1cb8a28 (patch)
treee36b1677b7874b6c02de1f9b2bcd2be04ee51a03
parent0d43d09e9488d7eb2fa7bed929606aa894ae06d3 (diff)
downloadeclipse.platform.swt-0f59ae273771c75506cc9632ccc4b415a1cb8a28.tar.gz
eclipse.platform.swt-0f59ae273771c75506cc9632ccc4b415a1cb8a28.tar.xz
eclipse.platform.swt-0f59ae273771c75506cc9632ccc4b415a1cb8a28.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/EmbeddedObject.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/EmbeddedObject.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/EmbeddedObject.java
index 2a47a811af..69df0490be 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/EmbeddedObject.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/EmbeddedObject.java
@@ -152,8 +152,12 @@ public abstract class EmbeddedObject {
}
public void draw(GC gc, int x, int y, int ascent, int descent) {
gc.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_BLACK));
- int height = Math.max(6, Math.min(10, ascent / 2));
- gc.setAntialias(SWT.ON);
+ int height = Math.max(6, Math.min(10, ascent / 2));
+ gc.setAdvanced(true);
+ if (gc.getAdvanced()) {
+ gc.setAntialias(SWT.ON);
+ }
+ if ((height & 1) == 0) height++;
gc.fillOval(x + 50 - height - 4, y + ascent - height, height, height);
gc.setAdvanced(false);
}