Commit 5e1be88d authored by Xaver Hugl's avatar Xaver Hugl
Browse files

kcm: fix choosing the refresh rate

It always chose the last one, and not the highest one
parent 8c1e2cff
Pipeline #172455 passed with stage
in 1 minute and 54 seconds
...@@ -394,6 +394,7 @@ bool OutputModel::setResolution(int outputIndex, int resIndex) ...@@ -394,6 +394,7 @@ bool OutputModel::setResolution(int outputIndex, int resIndex)
auto it = modes.begin(); auto it = modes.begin();
while (it != modes.end()) { while (it != modes.end()) {
if ((*it)->size() == size && (*it)->refreshRate() > bestRefreshRate) { if ((*it)->size() == size && (*it)->refreshRate() > bestRefreshRate) {
bestRefreshRate = (*it)->refreshRate();
modeIt = it; modeIt = it;
} }
it++; it++;
......
Supports Markdown
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