Fix example showcase (#10366)

# Objective

- One of the patch for CI was not applied anymore
- a temp file has been committed, remove it and gitignore it
This commit is contained in:
François 2023-11-04 02:33:51 +01:00 committed by GitHub
parent 64faadb932
commit 624801b942
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

2
.gitignore vendored
View file

@ -16,3 +16,5 @@ assets/scenes/load_scene_example-new.scn.ron
assets/**/*.meta
crates/bevy_asset/imported_assets
imported_assets
example_showcase_config.ron

View file

@ -1 +0,0 @@
(exit_after: Some(250))

View file

@ -1,16 +1,17 @@
diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs
index 46b3e3e19..81ffad2b5 100644
index 91c9858c7..9f93f05d0 100644
--- a/crates/bevy_winit/src/lib.rs
+++ b/crates/bevy_winit/src/lib.rs
@@ -432,6 +432,11 @@ pub fn winit_runner(mut app: App) {
};
@@ -510,6 +510,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) => {
window