Rémi Bernon (@rbernon) commented about dlls/win32u/sysparams.c:
- info->targetAvailable = TRUE;
- info->statusFlags = DISPLAYCONFIG_TARGET_IN_USE;
+}
+static void set_mode_source_info(DISPLAYCONFIG_MODE_INFO *info, const LUID *gpu_luid,
UINT32 source_id, const DEVMODEW *devmode)
+{
- DISPLAYCONFIG_SOURCE_MODE *mode = &(info->sourceMode);
- info->infoType = DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE;
- info->adapterId = *gpu_luid;
- info->id = source_id;
- mode->width = devmode->dmPelsWidth;
- mode->height = devmode->dmPelsHeight;
- mode->pixelFormat = get_dc_pixelformat(devmode->dmBitsPerPel);
```suggestion:-0+0 mode->pixelFormat = get_dc_pixelformat( devmode->dmBitsPerPel ); ```