privacy_mode_win_magnifier: fix crash when resolution changed

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

No files matched your search

+1
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) => {