-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
UI scales on window resize #653
Comments
Yeah, this is an unfortunate limitation documented at https://docs.rs/winit/0.25.0/winit/platform/run_return/trait.EventLoopExtRunReturn.html#tymethod.run_return |
Thank you for getting back so quickly on this (and for this awesome library by the way). I guess there is sound reasoning behind using The reason I ask is that I am currently building tools that might get resized a lot and I am thinking of pinning them to an older commit to be more user friendly, which of course in no good idea in the long run :) |
@woelper you can try helping @PolyMeilex fix this in winit: #270 (comment) If we manage to fix winit:s We could of course add some feature-flag to |
Just for reference, here is my winit fork that fixes this: PolyMeilex/winit@e4a0a15 Here is also a little cleaner approach proposed in an issue: |
@emilk Thank you for the explanation. After reading #631, this makes more sense, I was never expecting an immediate mode UI to work with a file dialog out of the box, so I was using @PolyMeilex Let me know if I can help you somehow! I lack plenty of experience with winit, but I have at least some hardware to test on should that help. |
We no longer use |
Thank you so much @emilk ! |
Since 04b3921 resizing a window scales it's contents until the resize operation is complete, causing the contents to look very stretched.
This happens on OSX, I will try to reproduce/test this on other operating systems, too.
The text was updated successfully, but these errors were encountered: