Skip to content
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

Fix GUI scaling to avoid gaps around GUI when width isn't a multiple of scaling #177

Open
stackotter opened this issue Aug 17, 2023 · 0 comments
Labels
bug Something isn't working rendering

Comments

@stackotter
Copy link
Owner

At the moment, the GUI constraint solving code (for calculating GUI layout) just always works at 1 times scale and the result gets scaled up by a factor. This means that if the screensize isn't a multiple of the GUI scale then there's a gap on the bottom and left of the GUI (i.e. the hotbar will be a pixel from the bottom of the screen, and an overlay won't extend all the way to the bottom right corner).

To fix this, the constraints system will probably have to be scaling-aware.

@stackotter stackotter added bug Something isn't working rendering labels Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rendering
Projects
None yet
Development

No branches or pull requests

1 participant