diff options
| author | Niraj Modi | 2016-07-21 11:37:44 +0000 |
|---|---|---|
| committer | Niraj Modi | 2016-07-21 11:37:44 +0000 |
| commit | d254df524a6ee0e2d474363527d42b9d5601b61a (patch) | |
| tree | 1184822058e9e338d0ec9645d301f6b79415e87e | |
| parent | 02e0a7b593b86b295d26309438ffeb066fde7429 (diff) | |
| download | eclipse.platform.swt-d254df524a6ee0e2d474363527d42b9d5601b61a.tar.gz eclipse.platform.swt-d254df524a6ee0e2d474363527d42b9d5601b61a.tar.xz eclipse.platform.swt-d254df524a6ee0e2d474363527d42b9d5601b61a.zip | |
Bug 498062 - [HiDPI] autoScale wrongly applies to Printer devices onY20160721-1000
Windows
Change-Id: I228bc51575927954b28053a903f8dc92e7e214b5
Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/Printer.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/Printer.java index bdb2a8707a..906f70b8c6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/Printer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/Printer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2012 IBM Corporation and others. + * Copyright (c) 2000, 2016 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -13,7 +13,6 @@ package org.eclipse.swt.printing; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; -import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.win32.*; /** @@ -483,11 +482,6 @@ public Point getDPI() { */ @Override public Rectangle getBounds() { - checkDevice (); - return DPIUtil.autoScaleDown(getBoundsInPixels()); -} - -Rectangle getBoundsInPixels() { checkDevice(); int width = OS.GetDeviceCaps(handle, OS.PHYSICALWIDTH); int height = OS.GetDeviceCaps(handle, OS.PHYSICALHEIGHT); @@ -513,10 +507,6 @@ Rectangle getBoundsInPixels() { */ @Override public Rectangle getClientArea () { - checkDevice (); - return DPIUtil.autoScaleDown(getClientAreaInPixels()); -} -Rectangle getClientAreaInPixels() { checkDevice(); int width = OS.GetDeviceCaps(handle, OS.HORZRES); int height = OS.GetDeviceCaps(handle, OS.VERTRES); |
