Zhiyi Zhang : iexplore: Set process DPI settings to be system awareness.

Alexandre Julliard julliard at winehq.org
Tue Sep 7 16:25:18 CDT 2021


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

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Tue Sep  7 11:10:14 2021 +0800

iexplore: Set process DPI settings to be system awareness.

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>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);




More information about the wine-cvs mailing list