Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KScreen
Commits
5e1be88d
Commit
5e1be88d
authored
May 05, 2022
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
kcm/output_model.cpp
View file @
5e1be88d
...
...
@@ -394,6 +394,7 @@ bool OutputModel::setResolution(int outputIndex, int resIndex)
auto
it
=
modes
.
begin
();
while
(
it
!=
modes
.
end
())
{
if
((
*
it
)
->
size
()
==
size
&&
(
*
it
)
->
refreshRate
()
>
bestRefreshRate
)
{
bestRefreshRate
=
(
*
it
)
->
refreshRate
();
modeIt
=
it
;
}
it
++
;
...
...
Xaver Hugl
@zamundaaa
mentioned in commit
6ecb8329
·
May 06, 2022
mentioned in commit
6ecb8329
mentioned in commit 6ecb832923612820c721f58d1d12dd176e10528a
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment