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-11-04 01:33:51 +00:00
|
|
|
index 91c9858c7..9f93f05d0 100644
|
2023-10-13 19:19:17 +00:00
|
|
|
--- a/crates/bevy_winit/src/lib.rs
|
|
|
|
+++ b/crates/bevy_winit/src/lib.rs
|
2023-11-04 01:33:51 +00:00
|
|
|
@@ -510,6 +510,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-11-04 01:33:51 +00:00
|
|
|
window
|