2023-10-13 19:19:17 +00:00
|
|
|
diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs
|
2023-12-22 06:08:43 +00:00
|
|
|
index 6a320bb2f..4d8b46c5f 100644
|
2023-10-13 19:19:17 +00:00
|
|
|
--- a/crates/bevy_winit/src/lib.rs
|
|
|
|
+++ b/crates/bevy_winit/src/lib.rs
|
2023-12-22 06:08:43 +00:00
|
|
|
@@ -469,6 +469,12 @@ pub fn winit_runner(mut app: App) {
|
2023-10-13 19:19:17 +00:00
|
|
|
|
|
|
|
runner_state.window_event_received = true;
|
2023-11-04 01:33:51 +00:00
|
|
|
|
2023-10-13 19:19:17 +00:00
|
|
|
+ event_writers.window_resized.send(WindowResized {
|
|
|
|
+ window: window_entity,
|
|
|
|
+ width: window.width(),
|
|
|
|
+ height: window.height(),
|
|
|
|
+ });
|
2023-11-04 01:33:51 +00:00
|
|
|
+
|
2023-10-13 19:19:17 +00:00
|
|
|
match event {
|
|
|
|
WindowEvent::Resized(size) => {
|
2023-12-22 06:08:43 +00:00
|
|
|
react_to_resize(&mut window, size, &mut event_writers, window_entity);
|