summaryrefslogtreecommitdiff
path: root/src/eom-scroll-view.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-24 16:11:25 +0200
committerinfirit <[email protected]>2014-07-24 20:17:46 +0200
commite748dd5e7e1214841be5cc08b74fde0ea7801870 (patch)
tree6bfc705cc0bdd2184c0922a3668ca4bd227ec567 /src/eom-scroll-view.c
parent72dee2d1a95db4dfa335d98358fdf3f294a9fbaa (diff)
downloadeom-e748dd5e7e1214841be5cc08b74fde0ea7801870.tar.bz2
eom-e748dd5e7e1214841be5cc08b74fde0ea7801870.tar.xz
Honour the antialiasing-in and antialiasing-out EomScrollView properties
Based on eog commit 9e6f9ee6ea2c0ca4338445a55ff3c6175ca6f623 From Claudio Saavedra <[email protected]>
Diffstat (limited to 'src/eom-scroll-view.c')
-rw-r--r--src/eom-scroll-view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c
index 4281252..0d634c0 100644
--- a/src/eom-scroll-view.c
+++ b/src/eom-scroll-view.c
@@ -1884,6 +1884,9 @@ 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);
+ 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);
cairo_paint (cr);
}