[eog] Honour the antialiasing-in and antialiasing-out EogScrollView properties
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Honour the antialiasing-in and antialiasing-out EogScrollView properties
- Date: Wed, 8 Sep 2010 16:43:36 +0000 (UTC)
commit 9e6f9ee6ea2c0ca4338445a55ff3c6175ca6f623
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Aug 18 02:02:53 2010 +0300
Honour the antialiasing-in and antialiasing-out EogScrollView properties
https://bugzilla.gnome.org/show_bug.cgi?id=626795
src/eog-scroll-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index c013720..67f434f 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -1894,6 +1894,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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]