diff --git a/.gitignore b/.gitignore index c338b9f8fa..79d54dbf2a 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/example_showcase_config.ron b/example_showcase_config.ron deleted file mode 100644 index 4503c3738b..0000000000 --- a/example_showcase_config.ron +++ /dev/null @@ -1 +0,0 @@ -(exit_after: Some(250)) \ No newline at end of file diff --git a/tools/example-showcase/extra-window-resized-events.patch b/tools/example-showcase/extra-window-resized-events.patch index a58f7e6947..66dcdfc153 100644 --- a/tools/example-showcase/extra-window-resized-events.patch +++ b/tools/example-showcase/extra-window-resized-events.patch @@ -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