Zhiyi Zhang : explorer: Add system DPI awareness settings to the application manifest.

Alexandre Julliard julliard at winehq.org
Mon Sep 6 16:15:05 CDT 2021


Module: wine
Branch: master
Commit: f613323d93ba43053d81a123244895e87d6d7c79
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f613323d93ba43053d81a123244895e87d6d7c79

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Mon Sep  6 16:54:52 2021 +0800

explorer: Add system DPI awareness settings to the application manifest.

This is also required for get_monitor_dpi() in wineserver to function properly for DPI unaware
applications because it uses desktop window DPI as monitor DPI.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/explorer/explorer.manifest | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/programs/explorer/explorer.manifest b/programs/explorer/explorer.manifest
index 15e5428a1b7..a4b573f0b41 100644
--- a/programs/explorer/explorer.manifest
+++ b/programs/explorer/explorer.manifest
@@ -13,4 +13,9 @@
         />
     </dependentAssembly>
 </dependency>
+<application xmlns="urn:schemas-microsoft-com:asm.v3">
+    <windowsSettings>
+        <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
+    </windowsSettings>
+</application>
 </assembly>




More information about the wine-cvs mailing list