user32: Ignore application-specified DPI awareness when DPI scaling is disabled.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2018-09-07 18:16:10 +02:00
parent 84ac7e1571
commit 1505905290
1 changed files with 5 additions and 1 deletions

View File

@ -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 */
{