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 run instances dialog scaling bug #98568

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Conversation

Nova840
Copy link
Contributor

@Nova840 Nova840 commented Oct 26, 2024

Fixes #98537

The EDSCALE variable (a float) was being multiplied to the Vector2i, and since Vector2i only has a * operator for int, EDSCALE would get rounded down. This meant that if the display scale was 0.75, it would get rounded to 0 and the dialog would open up with it's minimum size. With this change, the round happens after the multiplication.

@Nova840 Nova840 requested a review from a team as a code owner October 26, 2024 23:41
@AThousandShips AThousandShips added bug topic:editor cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Oct 27, 2024
@AThousandShips AThousandShips added this to the 4.4 milestone Oct 27, 2024
@akien-mga
Copy link
Member

Rebased and amended with KoBeWi's suggestion.

@Repiteo Repiteo merged commit 8d2db6c into godotengine:master Dec 3, 2024
@Repiteo
Copy link
Contributor

Repiteo commented Dec 3, 2024

Thanks! Congratulations on your first merged contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release topic:editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customize Run Instances window opens at minimum size when display scale set to less than 100%
5 participants