Use bilinear filtering

It could be both faster and more accurate,
though currently it's a good compromise.
This commit is contained in:
Přemysl Eric Janouch 2021-09-22 14:21:27 +02:00
parent cc29f80bb2
commit 70a4729f36
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}