Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2018-08-06 11:45:34 +0000
committerNiraj Modi2018-08-06 11:45:34 +0000
commita5f019a9f1f2157503c318b27d0b306a05339a40 (patch)
tree333b649eebd20ac04588b582e92ad66a060b0ed0
parentddbd6266a936ac6526a1a35e11d05b1f4661f0ae (diff)
downloadeclipse.platform.swt-a5f019a9f1f2157503c318b27d0b306a05339a40.tar.gz
eclipse.platform.swt-a5f019a9f1f2157503c318b27d0b306a05339a40.tar.xz
eclipse.platform.swt-a5f019a9f1f2157503c318b27d0b306a05339a40.zip
Bug 537614 - [Win32][CustomHiDPI] Gap between Checkbox/Radio and Text
not getting scaled Change-Id: I67eda8932305288e3f72c94a205f118508e71f4e Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
index 419143571b..7d62014807 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
@@ -2056,7 +2056,11 @@ Monitor getMonitor (long /*int*/ hmonitor) {
int [] dpiY = new int[1];
int result = OS.GetDpiForMonitor (monitor.handle, OS.MDT_EFFECTIVE_DPI, dpiX, dpiY);
result = (result == OS.S_OK) ? DPIUtil.mapDPIToZoom (dpiX[0]) : 100;
- monitor.zoom = DPIUtil.getZoomForAutoscaleProperty (result);
+ /*
+ * Always return true monitor zoom value as fetched from native, else will lead
+ * to scaling issue on OS Win8.1 and above, for more details refer bug 537614.
+ */
+ monitor.zoom = result;
} else {
monitor.zoom = getDeviceZoom ();
}

Back to the top