8 Jun
2023
8 Jun
'23
3:20 p.m.
Rémi Bernon (@rbernon) commented about dlls/win32u/sysparams.c:
+static BOOL source_mode_exists(const DISPLAYCONFIG_MODE_INFO *modeinfo, UINT32 num_modes, + UINT32 source_id, UINT32 *found_mode_index) +{ + UINT32 i; + + for (i = 0; i < num_modes; i++) + { + if (modeinfo[i].infoType == DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE && + modeinfo[i].id == source_id) + { + *found_mode_index = i; + return TRUE; + } + } + return FALSE; +}
static BOOL source_mode_exists( const DISPLAYCONFIG_MODE_INFO *modes, UINT32 modes_count,
UINT32 source_id, UINT32 *found_mode_index )
{
UINT32 i;
for (i = 0; i < modes_count; i++)
{
if (modes[i].infoType == DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE &&
modes[i].id == source_id)
{
*found_mode_index = i;
return TRUE;
}
}
return FALSE;
}
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2957#note_35154