win resolution && api

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages committed 2023-02-24 09:14:13 +08:00
1 parent 340ec0975f
commit 91a2a5b56e
9 files changed
+255 -4

No files matched your search

+9 -1
View File
@@ -74,5 +74,13 @@ mod tests {
assert!(!get_cursor_pos().is_none());
}
}
}
#[cfg(not(any(target_os = "android", target_os = "ios")))]
#[test]
fn test_resolution() {
let name = r"\\.\DISPLAY1";
println!("current:{:?}", current_resolution(name));
println!("change:{:?}", change_resolution(name, 2880, 1800));
println!("resolutions:{:?}", resolutions(name));
}
}