summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2004-05-27 15:25:03 +0000
committerVeronika Irvine <veronika>2004-05-27 15:25:03 +0000
commit8a65e1fd2455272593b4de7266f7da4898fabc38 (patch)
treeaf8121c0c91fa4fef2aa05060f1b216aeab28238
parent0026caf376c773f8cbfc6d3dcb9cd3e20b4f6d7f (diff)
downloadeclipse.platform.swt-8a65e1fd2455272593b4de7266f7da4898fabc38.tar.gz
eclipse.platform.swt-8a65e1fd2455272593b4de7266f7da4898fabc38.tar.xz
eclipse.platform.swt-8a65e1fd2455272593b4de7266f7da4898fabc38.zip
low res displays should not anti-alias
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
index 7ffa9111d9..6ccb013390 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
@@ -462,6 +462,8 @@ void antialias (int[] shape, RGB lineRGB, RGB innerRGB, RGB outerRGB, GC gc){
// Don't perform anti-aliasing on Mac because the platform
// already does it. The simple style also does not require anti-aliasing.
if (simple || "carbon".equals(SWT.getPlatform())) return; //$NON-NLS-1$
+ // Don't perform anti-aliasing on low resolution displays
+ if (getDisplay().getDepth() < 15) return;
if (outerRGB != null) {
int index = 0;
boolean left = true;