Alexandre Julliard : win32u: Fix handling of process default DPI awareness.
Module: wine Branch: master Commit: 7710e37c479da9e78a03d14dcebaa001163e147c URL: https://gitlab.winehq.org/wine/wine/-/commit/7710e37c479da9e78a03d14dcebaa00... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Nov 9 13:15:46 2023 +0100 win32u: Fix handling of process default DPI awareness. It got broken by the conversion to NTUSER_DPI* values. --- dlls/win32u/sysparams.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/win32u/sysparams.c b/dlls/win32u/sysparams.c index 5506abac7c6..4f2a299dd16 100644 --- a/dlls/win32u/sysparams.c +++ b/dlls/win32u/sysparams.c @@ -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:
participants (1)
-
Alexandre Julliard