Skip to content

Commit

Permalink
format and remove ;
Browse files Browse the repository at this point in the history
  • Loading branch information
frederik-uni committed Oct 23, 2024
1 parent ba771fa commit 72b28f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/egui-winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ pub fn screen_size_in_pixels(window: &Window) -> egui::Vec2 {
let size = if cfg!(target_os = "ios") {
// `outer_size` Includes the area behind the "dynamic island".
// It is up to the eframe user to make sure the dynamic island doesn't cover anything important.
// That will be easier once https://github.com/rust-windowing/winit/pull/3890 lands
window.outer_size();
// That will be easier once https://github.com/rust-windowing/winit/pull/3890 lands
window.outer_size()
} else {
window.inner_size()
};
window.inner_size()
};
egui::vec2(size.width as f32, size.height as f32)
}

Expand Down

0 comments on commit 72b28f6

Please sign in to comment.