Commit 00b1e92e authored by Guo kaka's avatar Guo kaka
Browse files

fix: The same resolution and refresh rate have different mode IDs.

parent 42e2cdf7
Pipeline #42841 passed with stage
in 5 minutes and 58 seconds
......@@ -200,8 +200,7 @@ void OutputDeviceInterface::addMode(Mode &mode)
auto existingModeIt = std::find_if(d->modes.begin(), d->modes.end(),
[mode](const Mode &mode_it) {
return mode.size == mode_it.size &&
mode.refreshRate == mode_it.refreshRate &&
mode.id == mode_it.id;
mode.refreshRate == mode_it.refreshRate;
}
);
auto emitChanges = [this, d, mode] {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment