mirror of
https://github.com/bevyengine/bevy
synced 2024-12-22 19:13:08 +00:00
98eb1d56c2
# Objective Fixes #8765 ## Solution When windows are created during plugin setup, the scale_factor of a WindowResolution struct will always be 1.0 (default). The correct scale factor is set later in flow. To get correct center calculations use the monitors scale factor directly instead. ## Results System: Windows 10 Pro (125% scaling) ### main ![scale_125_without_fix](https://github.com/bevyengine/bevy/assets/644930/df808013-adc9-4300-8930-08ac87cc62b8) ### This PR ![scale_125_with_fix](https://github.com/bevyengine/bevy/assets/644930/c3d73606-d9e3-4f65-b4cc-2a1c20dbb64d) |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |