Revert "macOS Sonoma (14.0) / Xcode 15.0 — Compatibility Fixes + Docs… (#9991)
… (#9905)"
This reverts commit 20ed3e0e76
.
Issue was already fixed:
https://github.com/rust-windowing/winit/pull/3118
This commit is contained in:
parent
e5dbde86fb
commit
f69e923c27
@ -28,13 +28,15 @@ bevy_utils = { path = "../bevy_utils", version = "0.12.0-dev" }
|
|||||||
bevy_tasks = { path = "../bevy_tasks", version = "0.12.0-dev" }
|
bevy_tasks = { path = "../bevy_tasks", version = "0.12.0-dev" }
|
||||||
|
|
||||||
# other
|
# other
|
||||||
winit = { version = "0.28", default-features = false }
|
winit = { version = "0.28.7", default-features = false }
|
||||||
accesskit_winit = { version = "0.14", default-features = false }
|
accesskit_winit = { version = "0.14", default-features = false }
|
||||||
approx = { version = "0.5", default-features = false }
|
approx = { version = "0.5", default-features = false }
|
||||||
raw-window-handle = "0.5"
|
raw-window-handle = "0.5"
|
||||||
|
|
||||||
[target.'cfg(target_os = "android")'.dependencies]
|
[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]
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||||
wasm-bindgen = { version = "0.2" }
|
wasm-bindgen = { version = "0.2" }
|
||||||
|
@ -441,14 +441,6 @@ pub fn winit_runner(mut app: App) {
|
|||||||
|
|
||||||
match event {
|
match event {
|
||||||
WindowEvent::Resized(size) => {
|
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
|
window
|
||||||
.resolution
|
.resolution
|
||||||
.set_physical_resolution(size.width, size.height);
|
.set_physical_resolution(size.width, size.height);
|
||||||
|
Loading…
Reference in New Issue
Block a user