Skip to content

[release/2.x] Floor outwards when converting to SKRectI #2574

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

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

github-actions[bot]
Copy link

Backport of 8fd4dc5 from #2568.

Truncation will chop off parts, and this will lose value. Flooring outwards ensure that the size touches the edge of the containing rect. This is useful that any partial overhang with integer sizes can be clipped when drawing.

(cherry picked from commit 8fd4dc5)
@github-actions github-actions bot added the backport This PR is an automatic backport. label Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport This PR is an automatic backport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant