mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
change resolution, macos needs more tests
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
1 parent
0d11a88dce
commit
b36a3f70fb
4 files changed
+22
-15
No files matched your search
@@ -830,7 +830,7 @@ pub fn current_resolution(name: &str) -> ResultType<Resolution> {
|
||||
bail!("Failed to find current resolution for {}", name);
|
||||
}
|
||||
|
||||
pub fn change_resolution(name: &str, width: usize, height: usize) -> ResultType<()> {
|
||||
pub fn change_resolution_directly(name: &str, width: usize, height: usize) -> ResultType<()> {
|
||||
Command::new("xrandr")
|
||||
.args(vec![
|
||||
"--output",
|
||||
|
||||
Reference in new issue
Block a user