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

Conversation

jknockel
Copy link
Contributor

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

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
@mtwebster mtwebster merged commit c1a29cb into linuxmint:master May 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants