win32u: Return -1 for NUMCOLORS with 8-bit display DCs.
commita1dda8c376e11ace204e8b97a9ba9344e400e2a5
authorZhiyi Zhang <zzhang@codeweavers.com>
Mon, 18 Apr 2022 06:55:48 +0000 (18 14:55 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 21 Apr 2022 12:44:58 +0000 (21 14:44 +0200)
tree9da94df1053d16f06caa4ed83e8bd65d7574f477
parentbfed4330245fe08c72fb317db02f8eddfd305767
win32u: Return -1 for NUMCOLORS with 8-bit display DCs.

According to tests, GetDeviceCaps(NUMCOLORS) returns -1 for display DCs when the current display
mode is 8-bit on newer versions of Windows, which makes sense because lower bit depth display modes
are actually emulated with 32-bit modes.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52679
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/user32/tests/monitor.c
dlls/win32u/driver.c