[idd] never add the extraMode to the EDID

Doing so causes windows to treat a new EDID as a new monitor
This commit is contained in:
Geoffrey McRae committed 2026-07-23 09:43:59 +10:00
1 parent 4d3636dba5
commit 1da457affe
3 files changed
+16 -1

No files matched your search

+8
View File
@@ -554,6 +554,10 @@ void CEdid::Build(const CSettings::DisplayModes& modes)
baseDtdIndex < EDID_BASE_DETAILED_TIMING_COUNT;
++modeIndex)
{
// never include the extra mode in the EDID
if (sorted[modeIndex].extraMode)
continue;
if (MakeDetailedTiming(
baseBlock.descriptors[baseDtdIndex].detailedTiming,
sorted[modeIndex]))
@@ -589,6 +593,10 @@ void CEdid::Build(const CSettings::DisplayModes& modes)
ctaDtdWrite + EDID_DTD_SIZE <= EDID_BLOCK_SIZE - 1;
++modeIndex)
{
// never include the extra mode in the EDID
if (sorted[modeIndex].extraMode)
continue;
if (WriteDetailedTiming(cta + ctaDtdWrite, sorted[modeIndex]))
ctaDtdWrite += EDID_DTD_SIZE;
}