Commit 15059052 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 84ac7e15
......@@ -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 */
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment