mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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:
parent
fcb49a5d80
commit
6fd580244a
2 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue