8199627: Use "Per-Monitor V2" High DPI awareness for Windows 10 v1703
authoraivanov
Thu, 12 Apr 2018 14:11:42 +0100
changeset 49695 a4d1d2dec618
parent 49694 69f7e3ed043c
child 49696 508e9f6632fd
8199627: Use "Per-Monitor V2" High DPI awareness for Windows 10 v1703 Reviewed-by: serb, prr
src/java.base/windows/native/launcher/java.manifest
--- a/src/java.base/windows/native/launcher/java.manifest	Thu Apr 12 14:03:54 2018 +0100
+++ b/src/java.base/windows/native/launcher/java.manifest	Thu Apr 12 14:11:42 2018 +0100
@@ -36,8 +36,10 @@
 
   <!-- Indicate JDK is high-dpi aware. -->
   <asmv3:application>
-    <asmv3:windowsSettings  xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
-       <dpiAware>true/PM</dpiAware>
+    <asmv3:windowsSettings xmlns:dpi1="http://schemas.microsoft.com/SMI/2005/WindowsSettings"
+                           xmlns:dpi2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
+      <dpi1:dpiAware>true/PM</dpi1:dpiAware>
+      <dpi2:dpiAwareness>PerMonitorV2, PerMonitor, system</dpi2:dpiAwareness>
     </asmv3:windowsSettings>
   </asmv3:application>