2023-10-13 19:19:17 +00:00
|
|
|
diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs
|
2024-01-29 17:53:18 +00:00
|
|
|
index 63d79b1d2..83ed56293 100644
|
2023-10-13 19:19:17 +00:00
|
|
|
--- a/crates/bevy_winit/src/lib.rs
|
|
|
|
+++ b/crates/bevy_winit/src/lib.rs
|
2024-01-29 17:53:18 +00:00
|
|
|
@@ -429,6 +429,12 @@ fn handle_winit_event(
|
2023-10-13 19:19:17 +00:00
|
|
|
|
2024-01-29 17:53:18 +00:00
|
|
|
runner_state.window_event_received = true;
|
2023-11-04 01:33:51 +00:00
|
|
|
|
2024-01-29 17:53:18 +00:00
|
|
|
+ window_resized.send(WindowResized {
|
|
|
|
+ window,
|
|
|
|
+ width: win.width(),
|
|
|
|
+ height: win.height(),
|
|
|
|
+ });
|
2023-11-04 01:33:51 +00:00
|
|
|
+
|
2024-01-29 17:53:18 +00:00
|
|
|
match event {
|
|
|
|
WindowEvent::Resized(size) => {
|
|
|
|
react_to_resize(&mut win, size, &mut window_resized, window);
|