mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 08:34:12 +00:00
Fix. Multi-display connection, resolutions (#7782)
* fix: multi-display, change resolution Signed-off-by: fufesou <shuanglongchen@yeah.net> * fix: multi-displays, resolutions of displays Signed-off-by: fufesou <shuanglongchen@yeah.net> * fix: build Signed-off-by: fufesou <shuanglongchen@yeah.net> * refact: Function rename Signed-off-by: fufesou <shuanglongchen@yeah.net> * refact. Function rename Signed-off-by: fufesou <shuanglongchen@yeah.net> --------- Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
1 parent
d4a1d4cd7e
commit
fb1aa9c028
7 files changed
+105
-18
No files matched your search
@@ -536,6 +536,13 @@ pub mod amyuni_idd {
|
||||
pub fn get_monitor_count() -> usize {
|
||||
windows::get_device_names(Some(super::AMYUNI_IDD_DEVICE_STRING)).len()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_my_display(name: &str) -> bool {
|
||||
windows::get_device_names(Some(super::AMYUNI_IDD_DEVICE_STRING))
|
||||
.iter()
|
||||
.any(|s| windows::is_device_name(s, name))
|
||||
}
|
||||
}
|
||||
|
||||
mod windows {
|
||||
|
||||
Reference in new issue
Block a user