better support for win7

This commit is contained in:
rustdesk
2021-05-17 20:46:02 +08:00
parent 7630713534
commit f760e56f79
5 changed files with 101 additions and 28 deletions

View File

@@ -114,9 +114,9 @@ impl Display {
self.0.is_online()
}
pub fn origin(&self) -> (usize, usize) {
pub fn origin(&self) -> (i32, i32) {
let o = self.0.bounds().origin;
(o.x as usize, o.y as usize)
(o.x as _, o.y as _)
}
pub fn is_primary(&self) -> bool {