fix: correct event types for windows

This commit is contained in:
Matt George 2024-10-27 13:45:57 -06:00 committed by Ashley Wulber
parent c0473f8a91
commit 5ca1838a2d
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -241,7 +241,7 @@ where
#[cfg(target_os = "windows")]
let is_move_or_resize = matches!(
event,
winit::event::WindowEvent::Resized(_)
winit::event::WindowEvent::SurfaceResized(_)
| winit::event::WindowEvent::Moved(_)
);
@ -259,7 +259,9 @@ where
if is_move_or_resize {
self.process_event(
event_loop,
Event::EventLoopAwakened(winit::Event::AboutToWait),
Some(Event::EventLoopAwakened(
winit::Event::AboutToWait,
)),
);
}
}