mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-22 12:41:14 +03:00
Fix, windows display orders
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -1165,7 +1165,7 @@ impl Connection {
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
{
|
||||
pi.resolutions = Some(SupportedResolutions {
|
||||
resolutions: display_service::try_get_displays()
|
||||
resolutions: display_service::try_get_displays(true)
|
||||
.map(|displays| {
|
||||
displays
|
||||
.get(self.display_idx)
|
||||
@@ -2366,7 +2366,7 @@ impl Connection {
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
fn change_resolution(&mut self, r: &Resolution) {
|
||||
if self.keyboard {
|
||||
if let Ok(displays) = display_service::try_get_displays() {
|
||||
if let Ok(displays) = display_service::try_get_displays(true) {
|
||||
if let Some(display) = displays.get(self.display_idx) {
|
||||
let name = display.name();
|
||||
#[cfg(all(windows, feature = "virtual_display_driver"))]
|
||||
|
||||
Reference in New Issue
Block a user