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

Round canvas.style dimensions to avoid blurring #9015

Merged
merged 1 commit into from May 8, 2021

Commits on May 7, 2021

  1. round canvas.style dimensions to avoid blurring

    When canvas.height and canvas.width are set, the numbers are rounded to
    integers. The same rounding must be applied to canvas.style.height and
    canvas.style.width to avoid scaling of the canvas which would lead to
    blurring.
    
    Acknowledging that canvas.height and canvas.width are integers, the
    framebuffer is now only redrawn if those integer values change.
    Flupp committed May 7, 2021
    Configuration menu
    Copy the full SHA
    6f6b515 View commit details
    Browse the repository at this point in the history