diff options
author | Markus Keller | 2016-06-01 16:52:45 +0000 |
---|---|---|
committer | Markus Keller | 2016-06-01 16:54:38 +0000 |
commit | 4c27b5d9edc35a8fd609c34a3c14f924d49ce252 (patch) | |
tree | 0c2f2ef26af5293eeb2c0f85bf448990f6ab3627 /bundles | |
parent | 30736e9e555ec580f01ace43eca3641a3fd45aa0 (diff) | |
download | eclipse.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
Change-Id: I57d5df6551c6c975e283236e3a8c83852d2bb146
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java | 2 |
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)); } /** |