fix patches for example showcase after winit update (#11058)

# Objective

- #10702 introduced some changes that broke patches for the example
showcase

## Solution

- Update those patches
This commit is contained in:
François 2023-12-22 07:08:43 +01:00 committed by GitHub
parent fcb49a5d80
commit 6fd580244a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View file

@ -1,8 +1,8 @@
diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs
index 91c9858c7..9f93f05d0 100644
index 6a320bb2f..4d8b46c5f 100644
--- a/crates/bevy_winit/src/lib.rs
+++ b/crates/bevy_winit/src/lib.rs
@@ -510,6 +510,12 @@ pub fn winit_runner(mut app: App) {
@@ -469,6 +469,12 @@ pub fn winit_runner(mut app: App) {
runner_state.window_event_received = true;
@ -14,4 +14,4 @@ index 91c9858c7..9f93f05d0 100644
+
match event {
WindowEvent::Resized(size) => {
window
react_to_resize(&mut window, size, &mut event_writers, window_entity);

View file

@ -1,8 +1,8 @@
diff --git a/crates/bevy_winit/src/winit_config.rs b/crates/bevy_winit/src/winit_config.rs
index c71a92814..b138d07a0 100644
index b91e25d34..48f19b708 100644
--- a/crates/bevy_winit/src/winit_config.rs
+++ b/crates/bevy_winit/src/winit_config.rs
@@ -47,15 +47,7 @@ impl WinitSettings {
@@ -29,14 +29,7 @@ impl WinitSettings {
/// [`Reactive`](UpdateMode::Reactive) if windows have focus,
/// [`ReactiveLowPower`](UpdateMode::ReactiveLowPower) otherwise.
pub fn desktop_app() -> Self {
@ -13,7 +13,6 @@ index c71a92814..b138d07a0 100644
- unfocused_mode: UpdateMode::ReactiveLowPower {
- wait: Duration::from_secs(60),
- },
- ..Default::default()
- }
+ Self::game()
}