-
-
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
[Merged by Bors] - Fix scale_factor_override in the winit backend #2784
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than not being quite sure on a new crate, this looks good
@@ -23,6 +23,7 @@ bevy_utils = { path = "../bevy_utils", version = "0.5.0" } | |||
|
|||
# other | |||
winit = { version = "0.25.0", default-features = false } | |||
approx = { version = "0.5.0", default-features = false } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a new crate? Wouldn't silencing clippy, or using epsilon work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe? We already depend on this transitively in the bevy_text
crate, and I don't think it's that big. I can make the function inline though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, if the dep already exists it's probably fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels small enough that it might be better to include it in bevy_core. We already have FloatOrd, which is in a similar vein. For now this is fine though.
bors r+ |
# Objective - Fixes #2751 ## Solution - Avoid changing the window size if there is a scale factor override - Can be tested with the `scale_factor_override` example - use <kbd>⏎</kbd> to active overriding the scale factor
Objective
Solution
scale_factor_override
example - use ⏎ to active overriding the scale factor