mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
a89ae8e9d9
# Objective
- Fixes #15285
## Solution
`winit` sends resized to zero events when the window is minimized only
on Windows OS(rust-windowing/winit#2015).
This makes updating window viewport size to `(0, 0)` and panicking when
calculating aspect ratio.
~~So, just skip these kinds of events - resizing to (0, 0) when the
window is minimized - on Windows OS~~
Idially, the camera extraction excludes the cameras whose target size
width or height is zero here;
|
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |