[PATCH 1/9] iexplore: Set process DPI settings to be system awareness.

Zhiyi Zhang zzhang at codeweavers.com
Mon Sep 6 22:10:14 CDT 2021


iexplore.exe doesn't have DPI awareness settings in its manifest. However, tests show that it has at
least per-monitor DPI awareness on Win10.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
 programs/iexplore/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/programs/iexplore/main.c b/programs/iexplore/main.c
index ade9f8c5226..adb6eff1101 100644
--- a/programs/iexplore/main.c
+++ b/programs/iexplore/main.c
@@ -68,6 +68,8 @@ static DWORD register_iexplore(BOOL doregister)
 
 int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE prev, WCHAR *cmdline, int show)
 {
+    SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_SYSTEM_AWARE);
+
     if(*cmdline == '-' || *cmdline == '/') {
         if(!wcsicmp(cmdline+1, L"regserver"))
             return register_iexplore(TRUE);
-- 
2.30.2




More information about the wine-devel mailing list