mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-24 21:51:14 +03:00
debug restore resolutions
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -1591,12 +1591,13 @@ impl LoginConfigHandler {
|
||||
pub fn get_custom_resolution(&self, display: i32) -> Option<(i32, i32)> {
|
||||
self.config
|
||||
.custom_resolutions
|
||||
.get(&display)
|
||||
.get(&display.to_string())
|
||||
.map(|r| (r.w, r.h))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn set_custom_resolution(&mut self, display: i32, wh: Option<(i32, i32)>) {
|
||||
let display = display.to_string();
|
||||
let mut config = self.load_config();
|
||||
match wh {
|
||||
Some((w, h)) => {
|
||||
|
||||
Reference in New Issue
Block a user