Skip to content

Commit

Permalink
Fix CI (#5005)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk authored Aug 26, 2024
1 parent b84a1e2 commit 0513c05
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/eframe/src/native/epi_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ impl EpiIntegration {

use winit::event::{ElementState, MouseButton, WindowEvent};

match event {
WindowEvent::MouseInput {
button: MouseButton::Left,
state: ElementState::Pressed,
..
} => self.can_drag_window = true,
_ => {}
if let WindowEvent::MouseInput {
button: MouseButton::Left,
state: ElementState::Pressed,
..
} = event
{
self.can_drag_window = true;
}

egui_winit.on_window_event(window, event)
Expand Down
9 changes: 9 additions & 0 deletions crates/egui-winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,15 @@ pub fn create_winit_window_attributes(
pixels_per_point * pos.y,
));
}
#[cfg(target_os = "ios")]
{
// Unused:
_ = pixels_per_point;
_ = position;
_ = inner_size;
_ = min_inner_size;
_ = max_inner_size;
}

if let Some(icon) = icon {
let winit_icon = to_winit_icon(&icon);
Expand Down

0 comments on commit 0513c05

Please sign in to comment.