From 37d21d8db0f8fbc3e1975d97fa1fdfc748680e64 Mon Sep 17 00:00:00 2001 From: fufesou Date: Mon, 6 Mar 2023 17:26:26 +0800 Subject: [PATCH] remove unused logic Signed-off-by: fufesou --- libs/scrap/src/dxgi/mag.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libs/scrap/src/dxgi/mag.rs b/libs/scrap/src/dxgi/mag.rs index b2bea1dd1..62e90c08b 100644 --- a/libs/scrap/src/dxgi/mag.rs +++ b/libs/scrap/src/dxgi/mag.rs @@ -127,15 +127,6 @@ impl MagInterface { }; s.init_succeeded = false; unsafe { - if GetSystemMetrics(SM_CMONITORS) != 1 { - // Do not try to use the magnifier in multi-screen setup (where the API - // crashes sometimes). - return Err(Error::new( - ErrorKind::Other, - "Magnifier capturer cannot work on multi-screen system.", - )); - } - // load lib let lib_file_name = "Magnification.dll"; let lib_file_name_c = CString::new(lib_file_name).unwrap();