From 70a4729f363c25684098953cad99ed9af4e23bf7 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Wed, 22 Sep 2021 14:21:27 +0200 Subject: Use bilinear filtering It could be both faster and more accurate, though currently it's a good compromise. --- fastiv-view.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3-70-g09d2