Skip to content

Scale::FitScreen creates too big windows#400

Merged
emoon merged 2 commits into
emoon:masterfrom
StaterZ:master
May 22, 2026
Merged

Scale::FitScreen creates too big windows#400
emoon merged 2 commits into
emoon:masterfrom
StaterZ:master

Conversation

@StaterZ

@StaterZ StaterZ commented May 21, 2026

Copy link
Copy Markdown
Contributor

The current code has a window scaling bug for Scale::FitScreen that persists across almost all of the supported platforms.
The code makes an incorrect check for if the next scale increment would be too big, this pull request resolves this.

I have also standardized the algorithm across all currently supported platforms to ensure the issue is solved for others on other platforms.
The code also scaled in different increments across different platforms. This is now also standardized.

@emoon emoon merged commit 2883497 into emoon:master May 22, 2026
4 checks passed
@emoon

emoon commented May 22, 2026

Copy link
Copy Markdown
Owner

Great! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants