Skip to content

Commit

Permalink
fix win11 check
Browse files Browse the repository at this point in the history
Co-authored-by: Tony <[email protected]>
  • Loading branch information
amrbashir and Legend-Master authored Feb 8, 2025
1 parent a92d25e commit b0dad9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform_impl/windows/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ pub fn calculate_insets_for_dpi(dpi: u32) -> RECT {
let frame_thickness = get_frame_thickness(dpi);

let top_inset = match WIN_VERSION.build {
v if v >= 2200 => (dpi as f32 / USER_DEFAULT_SCREEN_DPI as f32).round() as i32,
v if v >= 22000 => (dpi as f32 / USER_DEFAULT_SCREEN_DPI as f32).round() as i32,
_ => 0,
};

Expand Down

0 comments on commit b0dad9d

Please sign in to comment.