Commit 7710e37c authored by Alexandre Julliard's avatar Alexandre Julliard

win32u: Fix handling of process default DPI awareness.

It got broken by the conversion to NTUSER_DPI* values.
parent 00fb82c3
......@@ -2134,10 +2134,10 @@ DPI_AWARENESS get_thread_dpi_awareness(void)
struct ntuser_thread_info *info = NtUserGetThreadInfo();
ULONG_PTR context = info->dpi_awareness;
if (!context) context = NtUserGetProcessDpiAwarenessContext( NULL );
switch (context)
{
case 0: /* process default */
return NtUserGetProcessDpiAwarenessContext( NULL ) & 3;
case 0x10:
case 0x11:
case 0x12:
......
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