Skip to content

Commit

Permalink
Migrate windows 0.58
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Aug 28, 2024
1 parent ec6e483 commit aab7893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/tauri-runtime-wry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4347,7 +4347,8 @@ fn get_work_area_size(target_monitor: &MonitorHandle) -> TaoPhysicalSize<u32> {
cbSize: std::mem::size_of::<MONITORINFO>() as u32,
..Default::default()
};
let status = unsafe { GetMonitorInfoW(HMONITOR(target_monitor.hmonitor()), &mut monitor_info) };
let status =
unsafe { GetMonitorInfoW(HMONITOR(target_monitor.hmonitor() as _), &mut monitor_info) };
if status.into() {
return TaoPhysicalSize::new(
(monitor_info.rcWork.right - monitor_info.rcWork.left) as u32,
Expand Down

0 comments on commit aab7893

Please sign in to comment.