JRE-119 [use default "sun.java2d.dpiaware=true" to be dpi-aware on Window 7]

This lets awt_Win32GraphicsEnv.cpp SetProcessDPIAwareProperty() call Win7 specific ::SetProcessDPIAware() API func.

(cherry picked from commit 5e7a766090810d839f4352d06fc2812499d766f8)
(cherry picked from commit 7d1d43bfa1)
This commit is contained in:
Anton Tarasov
2016-12-02 18:59:49 +03:00
committed by alexey.ushakov@jetbrains.com
parent d398ec28aa
commit 0789a85164

View File

@@ -212,7 +212,7 @@ public class WindowsFlags {
}
offscreenSharingEnabled =
getBooleanProp("sun.java2d.offscreenSharing", false);
String dpiOverride = System.getProperty("sun.java2d.dpiaware");
String dpiOverride = System.getProperty("sun.java2d.dpiaware", "true");
if (dpiOverride != null) {
setHighDPIAware = dpiOverride.equalsIgnoreCase("true");
} else {