Skip to content

Commit

Permalink
add patch to fix desktop mode patch (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Mar 4, 2024
1 parent b8fb6fc commit d74c54e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions patches/remove-desktop-mode-patch.patch
@@ -0,0 +1,19 @@
diff --git a/tools/example-showcase/remove-desktop-app-mode.patch b/tools/example-showcase/remove-desktop-app-mode.patch
index 5db785410..7551ce3dc 100644
--- a/tools/example-showcase/remove-desktop-app-mode.patch
+++ b/tools/example-showcase/remove-desktop-app-mode.patch
@@ -1,10 +1,10 @@
diff --git a/crates/bevy_winit/src/winit_config.rs b/crates/bevy_winit/src/winit_config.rs
-index b91e25d34..48f19b708 100644
+index f2cb424ec..e68e01de0 100644
--- a/crates/bevy_winit/src/winit_config.rs
+++ b/crates/bevy_winit/src/winit_config.rs
-@@ -29,14 +29,7 @@ impl WinitSettings {
- /// [`Reactive`](UpdateMode::Reactive) if windows have focus,
- /// [`ReactiveLowPower`](UpdateMode::ReactiveLowPower) otherwise.
+@@ -31,14 +31,7 @@ impl WinitSettings {
+ ///
+ /// Use the [`EventLoopProxy`](crate::EventLoopProxy) to request a redraw from outside bevy.
pub fn desktop_app() -> Self {
- WinitSettings {
- focused_mode: UpdateMode::Reactive {

0 comments on commit d74c54e

Please sign in to comment.