-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce AspectRatio struct #10368
Introduce AspectRatio struct #10368
Conversation
Co-authored-by: Alice Cecile <[email protected]>
It looks like your PR is a breaking change, but you didn't provide a migration guide. Could you add some context on what users should update when this change get released in a new version of Bevy? |
Anything I need to do before this can be merged? |
Other than resolving merge conflicts, probably not. We need a second reviewer; let me ask around for one. |
Merging! FYI, next time you probably want to create a branch with a unique name on your repo for each PR: it really helps you keep things straight. |
Objective
Solution
AspectRatio
struct, as suggested in the issue. This is currently just used in any places where aspect ratio calculations happen, to prevent doing it wrong. In my and @mamekoro 's opinion, it would be better if this was used instead of a normalf32
in various places, but I didn't want to make too many changes to begin with.Migration Guide
AspectRatio
struct. this still holds the same value.