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

Snap rectangles to nearest pixels consistently. #7161

Merged
merged 1 commit into from Aug 11, 2015

Commits on Aug 11, 2015

  1. Snap rectangles to nearest pixels consistently.

    Snapping the top-left and bottom-right corners separately can cause a
    rectangle to change size when offset by a subpixel amount.  Instead, this
    patch snaps the top-left corner, then rounds the size to a whole pixel amount,
    so any rectangle of a given size will always have the same snapped size.
    
    Fixes #7152.
    mbrubeck committed Aug 11, 2015
You can’t perform that action at this time.