From bab5bdf8fbd02635a2d49a40d0b74317d0422640 Mon Sep 17 00:00:00 2001 From: "Ame :]" <104745335+ameknite@users.noreply.github.com> Date: Sun, 1 Oct 2023 19:37:03 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"macOS=20Sonoma=20(14.0)=20/=20Xcode?= =?UTF-8?q?=2015.0=20=E2=80=94=20Compatibility=20Fixes=20+=20Docs=E2=80=A6?= =?UTF-8?q?=20(#9991)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … (#9905)" This reverts commit 20ed3e0e765405ee334a44ce3c49c72bd29ab753. Issue was already fixed: https://github.com/rust-windowing/winit/pull/3118 --- crates/bevy_winit/Cargo.toml | 6 ++++-- crates/bevy_winit/src/lib.rs | 8 -------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/crates/bevy_winit/Cargo.toml b/crates/bevy_winit/Cargo.toml index fd7d4d3a373c1..ab388a06a7376 100644 --- a/crates/bevy_winit/Cargo.toml +++ b/crates/bevy_winit/Cargo.toml @@ -28,13 +28,15 @@ bevy_utils = { path = "../bevy_utils", version = "0.12.0-dev" } bevy_tasks = { path = "../bevy_tasks", version = "0.12.0-dev" } # other -winit = { version = "0.28", default-features = false } +winit = { version = "0.28.7", default-features = false } accesskit_winit = { version = "0.14", default-features = false } approx = { version = "0.5", default-features = false } raw-window-handle = "0.5" [target.'cfg(target_os = "android")'.dependencies] -winit = { version = "0.28", default-features = false, features = ["android-native-activity"] } +winit = { version = "0.28.7", default-features = false, features = [ + "android-native-activity", +] } [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen = { version = "0.2" } diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs index 3947b5020a867..a13c158709bfe 100644 --- a/crates/bevy_winit/src/lib.rs +++ b/crates/bevy_winit/src/lib.rs @@ -441,14 +441,6 @@ pub fn winit_runner(mut app: App) { match event { WindowEvent::Resized(size) => { - // TODO: Remove this once we upgrade winit to a version with the fix - #[cfg(target_os = "macos")] - if size.width == u32::MAX || size.height == u32::MAX { - // HACK to fix a bug on Macos 14 - // https://github.com/rust-windowing/winit/issues/2876 - return; - } - window .resolution .set_physical_resolution(size.width, size.height);