From 7769739bd6f2034bdcfc8e198ddd33bc06855816 Mon Sep 17 00:00:00 2001 From: 243f <243f@tuta.io> Date: Fri, 7 Jun 2024 20:23:07 -0400 Subject: [PATCH] use fast filter to prevent performance issues when downscaling image --- unlock_indicator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/unlock_indicator.c b/unlock_indicator.c index e10984a6..3d1eed7d 100644 --- a/unlock_indicator.c +++ b/unlock_indicator.c @@ -1221,6 +1221,7 @@ void draw_image(uint32_t* root_resolution, cairo_surface_t *img, cairo_t* xcb_ct cairo_pattern_t *pattern = cairo_pattern_create_for_surface(img); cairo_pattern_set_extend(pattern, bg_type == TILE ? CAIRO_EXTEND_REPEAT : CAIRO_EXTEND_NONE); cairo_set_source(xcb_ctx, pattern); + cairo_pattern_set_filter(pattern, CAIRO_FILTER_FAST); double image_width = cairo_image_surface_get_width(img); double image_height = cairo_image_surface_get_height(img);