diff options
author | Sravan Kumar Lakkimsetti | 2016-02-22 11:30:08 +0000 |
---|---|---|
committer | Sravan Kumar Lakkimsetti | 2016-02-22 11:30:08 +0000 |
commit | efef025b21942a1f8f24d8cbbe1fad887a5358bc (patch) | |
tree | ade602009a69b51b4bbe07b1b914262082a3144a /examples | |
parent | acc3aad22de4e9ad78274eb6e8ec760f1ee4c7c2 (diff) | |
download | eclipse.platform.swt-efef025b21942a1f8f24d8cbbe1fad887a5358bc.tar.gz eclipse.platform.swt-efef025b21942a1f8f24d8cbbe1fad887a5358bc.tar.xz eclipse.platform.swt-efef025b21942a1f8f24d8cbbe1fad887a5358bc.zip |
Revert "Bug 399786 - GC#draw*(..) needs to support high-DPI "
This reverts commit acc3aad22de4e9ad78274eb6e8ec760f1ee4c7c2.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet367.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet367.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet367.java index 5d5d4f3700..3b807a808f 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet367.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet367.java @@ -12,7 +12,6 @@ package org.eclipse.swt.snippets; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; -import org.eclipse.swt.internal.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; @@ -33,7 +32,6 @@ public class Snippet367 { private static final String IMAGE_PATH_150 = IMAGES_ROOT + IMAGE_150; private static final String IMAGE_PATH_200 = IMAGES_ROOT + IMAGE_200; - @SuppressWarnings("restriction") public static void main (String [] args) { final ImageFileNameProvider filenameProvider = zoom -> { switch (zoom) { @@ -159,7 +157,7 @@ public class Snippet367 { new Label (shell, SWT.NONE).setText ("5. 50x50 box\n(Display#getDPI(): " + display.getDPI().x + ")"); Label box= new Label (shell, SWT.NONE); box.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_DARK_SHADOW)); - box.setLayoutData (new GridData (DPIUtil.autoScaleDown(50), DPIUtil.autoScaleDown(50))); + box.setLayoutData (new GridData (50, 50)); shell.pack (); shell.open (); |