Skip to content

Commit

Permalink
use fast filter to prevent performance issues when downscaling image
Browse files Browse the repository at this point in the history
  • Loading branch information
243f committed Jun 8, 2024
1 parent 46aa0b3 commit 7769739
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unlock_indicator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7769739

Please sign in to comment.