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

meta-crtc-xrandr.c: use nearest neighbor filter for integer randr scales #692

Merged
merged 1 commit into from
May 14, 2024

Commits on May 12, 2024

  1. meta-crtc-xrandr.c: use nearest neighbor filter for integer randr scales

    Use the nearest neighbor filter if the scaling factor is an integer.
    This provides a crisper, less blurry scale when the scale is an integer.
    
    Note that this change only affects fractional scaling when the
    "scale-up" mode is used.  Scaling down is unaffected by this change, and
    non-integer scaling up is also unaffected by this change.
    
    This behavior was already in Cinnamon 5.4, but it was lost at some point
    in between 5.4 and now.
    
    Note finally that the "nearest" filter is a filter guaranteed to exist
    by the RENDER protocol [1].
    
    [1] https://cgit.freedesktop.org/xorg/proto/renderproto/tree/renderproto.txt
    jknockel committed May 12, 2024
    Configuration menu
    Copy the full SHA
    85cc9c6 View commit details
    Browse the repository at this point in the history