mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-17 02:01:01 +03: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:
@@ -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