mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
6fd580244a
# Objective - #10702 introduced some changes that broke patches for the example showcase ## Solution - Update those patches
17 lines
702 B
Diff
17 lines
702 B
Diff
diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs
|
|
index 6a320bb2f..4d8b46c5f 100644
|
|
--- a/crates/bevy_winit/src/lib.rs
|
|
+++ b/crates/bevy_winit/src/lib.rs
|
|
@@ -469,6 +469,12 @@ pub fn winit_runner(mut app: App) {
|
|
|
|
runner_state.window_event_received = true;
|
|
|
|
+ event_writers.window_resized.send(WindowResized {
|
|
+ window: window_entity,
|
|
+ width: window.width(),
|
|
+ height: window.height(),
|
|
+ });
|
|
+
|
|
match event {
|
|
WindowEvent::Resized(size) => {
|
|
react_to_resize(&mut window, size, &mut event_writers, window_entity);
|