Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Marchand2019-01-30 11:01:01 -0500
committerMike Marchand2019-01-30 14:57:33 -0500
commitb96722424ff908aba3b0ce5a2b173f5080b3c281 (patch)
tree832f605f3d46b362799451e8040c9555c56eded8
parent22a865fbd64d9ae3cbc58183d76b5b6c6c5fb38e (diff)
downloadeclipse.platform.swt-b96722424ff908aba3b0ce5a2b173f5080b3c281.tar.gz
eclipse.platform.swt-b96722424ff908aba3b0ce5a2b173f5080b3c281.tar.xz
eclipse.platform.swt-b96722424ff908aba3b0ce5a2b173f5080b3c281.zip
Bug 501491 - Draw close button with antialiasing.
Change-Id: I11a22e345a12d9dbdadfceaf9f7fe543119d0964 Signed-off-by: Mike Marchand <mmarchand@cranksoftware.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java
index d5cce86390..dda26f9122 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java
@@ -871,6 +871,8 @@ public class CTabFolderRenderer {
int y = closeRect.y + Math.max(1, (closeRect.height-9)/2);
y += parent.onBottom ? -1 : 1;
+ int aa = gc.getAntialias();
+ gc.setAntialias(SWT.ON);
Color closeBorder = display.getSystemColor(BUTTON_BORDER);
switch (closeImageState & (SWT.HOT | SWT.SELECTED | SWT.BACKGROUND)) {
case SWT.NONE: {
@@ -912,6 +914,7 @@ public class CTabFolderRenderer {
break;
}
}
+ gc.setAntialias(aa);
}
void drawChevron(GC gc, Rectangle chevronRect, int chevronImageState) {

Back to the top