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@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
08eaf8f481
commit
8e11db9d55
|
@ -68,6 +68,8 @@ static DWORD register_iexplore(BOOL doregister)
|
||||||
|
|
||||||
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE prev, WCHAR *cmdline, int show)
|
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE prev, WCHAR *cmdline, int show)
|
||||||
{
|
{
|
||||||
|
SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_SYSTEM_AWARE);
|
||||||
|
|
||||||
if(*cmdline == '-' || *cmdline == '/') {
|
if(*cmdline == '-' || *cmdline == '/') {
|
||||||
if(!wcsicmp(cmdline+1, L"regserver"))
|
if(!wcsicmp(cmdline+1, L"regserver"))
|
||||||
return register_iexplore(TRUE);
|
return register_iexplore(TRUE);
|
||||||
|
|
Loading…
Reference in New Issue