Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2016-06-01 16:52:45 +0000
committerMarkus Keller2016-06-01 16:54:38 +0000
commit4c27b5d9edc35a8fd609c34a3c14f924d49ce252 (patch)
tree0c2f2ef26af5293eeb2c0f85bf448990f6ab3627 /bundles
parent30736e9e555ec580f01ace43eca3641a3fd45aa0 (diff)
downloadeclipse.platform.swt-4c27b5d9edc35a8fd609c34a3c14f924d49ce252.tar.gz
eclipse.platform.swt-4c27b5d9edc35a8fd609c34a3c14f924d49ce252.tar.xz
eclipse.platform.swt-4c27b5d9edc35a8fd609c34a3c14f924d49ce252.zip
Bug 495134: [HiDPI][Win32] Device#getDPI behaves differently between Linux and Windows with HiDPI screens
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java
index 9685c5b824..b7cbc52ed8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java
@@ -475,7 +475,7 @@ public Point getDPI () {
int dpiX = OS.GetDeviceCaps (hDC, OS.LOGPIXELSX);
int dpiY = OS.GetDeviceCaps (hDC, OS.LOGPIXELSY);
internal_dispose_GC (hDC, null);
- return new Point (dpiX, dpiY);
+ return DPIUtil.autoScaleDown(new Point (dpiX, dpiY));
}
/**

Back to the top