mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 22:20:20 +00:00
8b88887152
# Objective - Enable capturing screenshots of all examples in CI on a GitHub runner ## Solution - Shorten duration of a run - Disable `desktop_app` mode - as there isn't any input in CI, examples using this take way too long to run - Change the default `ClusterConfig` - the runner are not able to do all the clusters with the default settings - Send extra `WindowResized` events - this is needed only for the `split_screen` example, because CI doesn't trigger that event unlike all the other platforms --------- Co-authored-by: Rob Parrett <robparrett@gmail.com>
16 lines
628 B
Diff
16 lines
628 B
Diff
diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs
|
|
index 46b3e3e19..81ffad2b5 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) {
|
|
};
|
|
|
|
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) => {
|