mirror of
https://github.com/bevyengine/bevy
synced 2024-11-28 23:50:20 +00:00
ba2fffef5a
# Objective - one of the patch for the example showcase need to be updated after the recent winit event loop changes ## Solution - update it
17 lines
609 B
Diff
17 lines
609 B
Diff
diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs
|
|
index 63d79b1d2..83ed56293 100644
|
|
--- a/crates/bevy_winit/src/lib.rs
|
|
+++ b/crates/bevy_winit/src/lib.rs
|
|
@@ -429,6 +429,12 @@ fn handle_winit_event(
|
|
|
|
runner_state.window_event_received = true;
|
|
|
|
+ window_resized.send(WindowResized {
|
|
+ window,
|
|
+ width: win.width(),
|
|
+ height: win.height(),
|
|
+ });
|
|
+
|
|
match event {
|
|
WindowEvent::Resized(size) => {
|
|
react_to_resize(&mut win, size, &mut window_resized, window);
|