[x11] Fix loading monitor edid

i is the counter for the crtc loop, not the monitor loop

This fixes loading the edid for all monitors and thus the output identifier effect
This commit is contained in:
Nicolas Fella 2022-07-29 01:41:06 +02:00
parent 54e74df57b
commit e0a6d02984

View file

@ -566,8 +566,8 @@ void X11StandalonePlatform::doUpdateOutputs()
};
bool ok;
if (auto data = edids[i].toByteArray(&ok); ok && !data.isEmpty()) {
if (auto edid = Edid(data, edids[i].data()->num_items); edid.isValid()) {
if (auto data = edids[j].toByteArray(&ok); ok && !data.isEmpty()) {
if (auto edid = Edid(data, edids[j].data()->num_items); edid.isValid()) {
information.manufacturer = edid.manufacturerString();
information.model = edid.monitorName();
information.serialNumber = edid.serialNumber();