restore custom resolution for each display

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2023-06-05 20:33:24 +08:00
1 parent b07ac438f5
commit e670989e0f
7 files changed
+132 -36

No files matched your search

+2 -2
View File
@@ -535,9 +535,9 @@ pub fn session_switch_sides(id: String) {
}
}
pub fn session_change_resolution(id: String, width: i32, height: i32) {
pub fn session_change_resolution(id: String, display: i32, width: i32, height: i32) {
if let Some(session) = SESSIONS.read().unwrap().get(&id) {
session.change_resolution(width, height);
session.change_resolution(display, width, height);
}
}