-
Notifications
You must be signed in to change notification settings - Fork 37
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
PistonWindow.set_size() does not always apply size #285
Comments
Have you checked other window backends? Try This will tell us whether the bug is in Piston or in the backend. |
I'll give that a shot. |
window.set_size() does work when using |
Do you believe there can be a bug here? It seems pretty straight forward to me: https://github.com/PistonDevelopers/glutin_window/blob/master/src/lib.rs#L519 |
If the bug isn't in glutin_window, then it is probably in winit: https://crates.io/crates/winit |
Example to reproduce
Compiler
Cargo.toml
main.rs
Example of output when it does not apply:
window resized to 480 480
window resized to 480 478.7692307692308
square set to Size { width: 479.38461538461536, height: 479.38461538461536 }
actual window size = Size { width: 480.0, height: 478.7692307692308 }
window resized to 490.46153846153845 470.7692307692308
square set to Size { width: 480.61538461538464, height: 480.61538461538464 }
actual window size = Size { width: 490.46153846153845, height: 470.7692307692308 }
window resized to 518.7692307692307 446.7692307692308
square set to Size { width: 482.7692307692307, height: 482.7692307692307 }
actual window size = Size { width: 518.7692307692307, height: 446.7692307692308 }
Example of output when it does apply:
window resized to 617.2307692307693 361.84615384615387
square set to Size { width: 489.53846153846155, height: 489.53846153846155 }
actual window size = Size { width: 617.2307692307693, height: 361.84615384615387 }
window resized to 489.84615384615387 489.84615384615387
The text was updated successfully, but these errors were encountered: