From 1e2c479cee018d3b57754c1dd8f1f49a1598ddf6 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Fri, 9 May 2025 23:35:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20=E6=9B=B4=E6=96=B0=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E8=BE=93=E5=87=BA=E4=BB=A5=E5=BF=BD=E7=95=A5=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/client/utils.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/client/utils.rs b/src-tauri/src/client/utils.rs index 34d06754..e5108e46 100644 --- a/src-tauri/src/client/utils.rs +++ b/src-tauri/src/client/utils.rs @@ -19,7 +19,8 @@ pub fn get_window_size2(monitor: Monitor, width: f64, height: f64) -> (f64, f64) let height_scale = monitor_height / 1080.0; let mut get_width: f64 = 0.0; let mut get_height: f64 = 0.0; - dbg!(get_width, get_height); // 防止never read + // 忽略未使用 + println!("{} {}", get_width, get_height); get_width = (width * width_scale / monitor_scale).round(); get_height = (height * height_scale / monitor_scale).round(); #[cfg(target_os = "macos")]