aboutsummaryrefslogtreecommitdiff
path: root/fastiv-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'fastiv-view.c')
-rw-r--r--fastiv-view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fastiv-view.c b/fastiv-view.c
index 33a2878..ac312d5 100644
--- a/fastiv-view.c
+++ b/fastiv-view.c
@@ -137,6 +137,9 @@ fastiv_view_draw(GtkWidget *widget, cairo_t *cr)
cairo_set_source_surface(cr, self->surface,
x / self->scale, y / self->scale);
+ // TODO(p): Prescale it ourselves to an off-screen bitmap, gamma-correctly.
+ cairo_pattern_set_filter(cairo_get_source(cr), CAIRO_FILTER_GOOD);
+
cairo_paint(cr);
return TRUE;
}