[PATCH 4/5] explorer: Add system DPI awareness settings to the application manifest.

Zhiyi Zhang zzhang at codeweavers.com
Mon Sep 6 03:54:52 CDT 2021


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>
---
 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>
-- 
2.30.2




More information about the wine-devel mailing list