Rémi Bernon (@rbernon) commented about dlls/win32u/sysparams.c:
- info->id = target_id;
- info->modeInfoIdx = mode_index;
- info->outputTechnology = DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EXTERNAL;
- info->rotation = get_dc_rotation(devmode);
- info->scaling = DISPLAYCONFIG_SCALING_IDENTITY;
- info->refreshRate.Numerator = devmode->dmDisplayFrequency;
- info->refreshRate.Denominator = 1;
- info->scanLineOrdering = get_dc_scanline_ordering(devmode);
- 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);
```suggestion:-0+0 DISPLAYCONFIG_SOURCE_MODE *mode = &info->sourceMode; ```