Skip to content

Commit

Permalink
fix patches for example showcase after winit update (#11058)
Browse files Browse the repository at this point in the history
# Objective

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

## Solution

- Update those patches
  • Loading branch information
mockersf authored Dec 22, 2023
1 parent fcb49a5 commit 6fd5802
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tools/example-showcase/extra-window-resized-events.patch
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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);
5 changes: 2 additions & 3 deletions tools/example-showcase/remove-desktop-app-mode.patch
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -13,7 +13,6 @@ index c71a92814..b138d07a0 100644
- unfocused_mode: UpdateMode::ReactiveLowPower {
- wait: Duration::from_secs(60),
- },
- ..Default::default()
- }
+ Self::game()
}
Expand Down

0 comments on commit 6fd5802

Please sign in to comment.