From 15059052904910b9efab898b43a264bc91e261f9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 7 Sep 2018 18:16:10 +0200 Subject: [PATCH] user32: Ignore application-specified DPI awareness when DPI scaling is disabled. Signed-off-by: Alexandre Julliard --- dlls/user32/sysparams.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c index 028a0a916dd..224d2f9fe07 100644 --- a/dlls/user32/sysparams.c +++ b/dlls/user32/sysparams.c @@ -1460,7 +1460,11 @@ void SYSPARAMS_Init(void) /* FIXME: what do the DpiScalingVer flags mean? */ get_dword_entry( (union sysparam_all_entry *)&entry_DPISCALINGVER, 0, &dpi_scaling, 0 ); - if (!dpi_scaling) default_awareness = DPI_AWARENESS_PER_MONITOR_AWARE; + if (!dpi_scaling) + { + default_awareness = DPI_AWARENESS_PER_MONITOR_AWARE; + if (dpi_awareness) dpi_awareness = 0x10 | default_awareness; + } if (volatile_base_key && dispos == REG_CREATED_NEW_KEY) /* first process, initialize entries */ {