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

More configurable antialiasing #465

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

More configurable antialiasing #465

wants to merge 1 commit into from

Conversation

jadiah
Copy link

@jadiah jadiah commented Mar 27, 2019

Added options for antialiasing: --aa-scroll, --aa-scroll-page, --aa-pan, --aa-zoom
Wanted to make AA way more configurable, but it seems imlib2 not allows to disable AA for not zoomed and not rotated images.

@@ -295,7 +298,10 @@ static void feh_event_handle_ButtonPress(XEvent * ev)
- (winwid->im_click_offset_y * winwid->zoom);

winwidget_sanitise_offsets(winwid);
winwidget_render_image(winwid, 0, 0);
if(opt.antialiasing_zoom == 0)
Copy link
Contributor

@Ferada Ferada Jun 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block is copied too many times, make it a (well, several) function maybe?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(opt.antialiasing_zoom == 0)
if (opt.antialiasing_zoom == 0)

And so on for all the rest to match the existing style.

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.

None yet

2 participants