mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
example showcase: fix window resized patch (#11596)
# Objective - one of the patch for the example showcase need to be updated after the recent winit event loop changes ## Solution - update it
This commit is contained in:
parent
a9f061e909
commit
ba2fffef5a
1 changed files with 11 additions and 11 deletions
|
@ -1,17 +1,17 @@
|
||||||
diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs
|
diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs
|
||||||
index 6a320bb2f..4d8b46c5f 100644
|
index 63d79b1d2..83ed56293 100644
|
||||||
--- a/crates/bevy_winit/src/lib.rs
|
--- a/crates/bevy_winit/src/lib.rs
|
||||||
+++ b/crates/bevy_winit/src/lib.rs
|
+++ b/crates/bevy_winit/src/lib.rs
|
||||||
@@ -469,6 +469,12 @@ pub fn winit_runner(mut app: App) {
|
@@ -429,6 +429,12 @@ fn handle_winit_event(
|
||||||
|
|
||||||
runner_state.window_event_received = true;
|
runner_state.window_event_received = true;
|
||||||
|
|
||||||
+ event_writers.window_resized.send(WindowResized {
|
+ window_resized.send(WindowResized {
|
||||||
+ window: window_entity,
|
+ window,
|
||||||
+ width: window.width(),
|
+ width: win.width(),
|
||||||
+ height: window.height(),
|
+ height: win.height(),
|
||||||
+ });
|
+ });
|
||||||
+
|
+
|
||||||
match event {
|
match event {
|
||||||
WindowEvent::Resized(size) => {
|
WindowEvent::Resized(size) => {
|
||||||
react_to_resize(&mut window, size, &mut event_writers, window_entity);
|
react_to_resize(&mut win, size, &mut window_resized, window);
|
||||||
|
|
Loading…
Add table
Reference in a new issue