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 /bundles/org.eclipse.swt/Eclipse SWT AWT | |
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 'bundles/org.eclipse.swt/Eclipse SWT AWT')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java index b3b0d42c97..9852f995f3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java @@ -19,7 +19,6 @@ import java.lang.reflect.*; /* SWT Imports */ import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; -import org.eclipse.swt.graphics.Point; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gtk.*; @@ -250,7 +249,7 @@ public static Frame new_Frame (final Composite parent) { }); break; case SWT.Resize: - final Rectangle clientArea = DPIUtil.autoScaleUp(parent.getClientArea()); + final Rectangle clientArea = parent.getClientArea(); EventQueue.invokeLater(new Runnable () { @Override public void run () { @@ -268,7 +267,7 @@ public static Frame new_Frame (final Composite parent) { @Override public void run () { if (parent.isDisposed()) return; - final Rectangle clientArea = DPIUtil.autoScaleUp(parent.getClientArea()); + final Rectangle clientArea = parent.getClientArea(); EventQueue.invokeLater(new Runnable () { @Override public void run () { @@ -318,7 +317,7 @@ public static Shell new_Shell (final Display display, final Canvas parent) { public void run () { if (shell.isDisposed()) return; Dimension dim = parent.getSize (); - shell.setSize (DPIUtil.autoScaleDown(new Point(dim.width, dim.height))); + shell.setSize (dim.width, dim.height); } }); } |