fix(displays): keep refresh rate when changing scale
This commit is contained in:
parent
b4fb20f235
commit
dab4bfb828
1 changed files with 4 additions and 0 deletions
|
|
@ -1049,9 +1049,13 @@ impl Page {
|
||||||
return Task::none();
|
return Task::none();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let rate = current.refresh_rate;
|
||||||
|
|
||||||
task.arg("mode")
|
task.arg("mode")
|
||||||
.arg("--scale")
|
.arg("--scale")
|
||||||
.arg(format!("{}.{:02}", scale / 100, scale % 100))
|
.arg(format!("{}.{:02}", scale / 100, scale % 100))
|
||||||
|
.arg("--refresh")
|
||||||
|
.arg(format!("{}.{:03}", rate / 1000, rate % 1000))
|
||||||
.arg(name)
|
.arg(name)
|
||||||
.arg(itoa::Buffer::new().format(current.size.0))
|
.arg(itoa::Buffer::new().format(current.size.0))
|
||||||
.arg(itoa::Buffer::new().format(current.size.1));
|
.arg(itoa::Buffer::new().format(current.size.1));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue