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
Resizable windows start "scaling up" after a point #497
Comments
Seems to be affected by https://github.com/gosu/gosu/blob/master/src/Window.cpp#L192-L193 // If the window is resizable, limit its size, without preserving the aspect ratio.
width = actual_width = min(width, max_width);
height = actual_height = min(height, max_height); |
Whoops, well that's not great. Thanks for reporting! |
I have not been able to reproduce any of these issues on macOS, but things seem to be broken in various ways on Linux (elementary, based on Ubuntu 18.04 with SDL 2.0.8). |
I think one issue is that SDL_SetWindowSize does not affect maximized (not fullscreen) windows, so Gosu thinks the window size has changed when it hasn't. This might also affect Windows, not sure. |
My current plan would be to separate the responsibilities of |
See video: https://youtu.be/xE2LUiSjiL0
The text was updated successfully, but these errors were encountered: