diff options
author | Martin Wimpress <[email protected]> | 2016-06-20 13:59:04 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2016-06-20 13:59:04 +0100 |
commit | 48fa6f925cf6ebff5bf7527d387f3c9a483ad8cc (patch) | |
tree | 81a72bb54a6bbf17a8a9d056bf5864369a5bd822 /src/eom-scroll-view.c | |
parent | 629636cb78ac1200c3dbe9d2c1c70362cd690f8b (diff) | |
parent | ad32b4d69a5a56d416502fb2e3bb5f2c1e6a605c (diff) | |
download | eom-48fa6f925cf6ebff5bf7527d387f3c9a483ad8cc.tar.bz2 eom-48fa6f925cf6ebff5bf7527d387f3c9a483ad8cc.tar.xz |
Merge pull request #126 from flexiondotorg/master
Fix the zoom and scroll performance. Closes #105.
Diffstat (limited to 'src/eom-scroll-view.c')
-rw-r--r-- | src/eom-scroll-view.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c index 6d1b290..5ec6c57 100644 --- a/src/eom-scroll-view.c +++ b/src/eom-scroll-view.c @@ -1355,9 +1355,10 @@ display_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data) cairo_scale (cr, priv->zoom, priv->zoom); cairo_set_source_surface (cr, priv->surface, xofs/priv->zoom, yofs/priv->zoom); cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_PAD); - if ((is_zoomed_in (view) && priv->interp_type_in == CAIRO_FILTER_NEAREST) || - (is_zoomed_out (view) && priv->interp_type_out == CAIRO_FILTER_NEAREST)) - cairo_pattern_set_filter (cairo_get_source (cr), CAIRO_FILTER_NEAREST); + if (is_zoomed_in (view)) + cairo_pattern_set_filter (cairo_get_source (cr), priv->interp_type_in); + else if (is_zoomed_out (view)) + cairo_pattern_set_filter (cairo_get_source (cr), priv->interp_type_out); cairo_paint (cr); } |