privacy_mode_win_magnifier: fix crash when resolution changed

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-05-30 18:16:04 +08:00
parent 5182b96bda
commit 18ba55056f
3 changed files with 34 additions and 9 deletions

View File

@@ -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) => {