From 9e7137ce09da15198787704edcb3cc774dd35f41 Mon Sep 17 00:00:00 2001 From: fufesou Date: Mon, 1 Apr 2024 13:27:52 +0800 Subject: [PATCH] Fix. Custom resolution removed after 2rd conn (#7571) Signed-off-by: fufesou --- src/ui_session_interface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui_session_interface.rs b/src/ui_session_interface.rs index 02bd99eff..348bcbd7b 100644 --- a/src/ui_session_interface.rs +++ b/src/ui_session_interface.rs @@ -1228,7 +1228,7 @@ impl Session { #[inline] fn try_change_init_resolution(&self, display: i32) { if let Some((w, h)) = self.lc.read().unwrap().get_custom_resolution(display) { - self.do_change_resolution(w, h); + self.change_resolution(display, w, h); } }