mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-29 06:09:45 +08:00
💚 更新调试输出以忽略未使用的变量
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user