mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-11 08:51:29 +03:00
privacy_mode_win_magnifier: fix crash when resolution changed
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Specify the Windows subsystem to eliminate console window.
|
||||
// Requires Rust 1.18.
|
||||
#![windows_subsystem = "windows"]
|
||||
//#![windows_subsystem = "windows"]
|
||||
|
||||
use hbb_common::log;
|
||||
use librustdesk::*;
|
||||
|
||||
@@ -269,6 +269,7 @@ fn create_capturer(privacy_mode_id: i32, display: Display) -> ResultType<Box<dyn
|
||||
PRIVACY_WINDOW_NAME
|
||||
);
|
||||
}
|
||||
log::info!("Create maginifier capture for {}", privacy_mode_id);
|
||||
c = Some(Box::new(c1));
|
||||
}
|
||||
Err(e) => {
|
||||
|
||||
Reference in New Issue
Block a user