win32u: Introduce a get_display_depth() helper to retrieve emulated display depth.
commitd81cf4ed555e87e469146829b86bd3bca801efd9
authorZhiyi Zhang <zzhang@codeweavers.com>
Tue, 3 Jan 2023 14:38:09 +0000 (3 22:38 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 9 Jan 2023 15:44:08 +0000 (9 16:44 +0100)
treef0d7d8c1a2cfcdb0d287a9cc75e4f020661cc342
parent8e9763871b6f33e298c4c24627c490b1b46dda7e
win32u: Introduce a get_display_depth() helper to retrieve emulated display depth.

Using EnumDisplaySettings() directly to query display depth has a high overhead when using the
XRandR 1.0 display device handler on some NVIDIA setups.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51420
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53382
dlls/win32u/driver.c
dlls/win32u/sysparams.c
dlls/win32u/win32u_private.h
dlls/winemac.drv/display.c
dlls/winemac.drv/gdi.c
dlls/winemac.drv/macdrv.h
dlls/winex11.drv/display.c
dlls/winex11.drv/init.c
dlls/winex11.drv/x11drv.h
include/wine/gdi_driver.h