mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-22 13:38:13 +02:00
cairo-util: Use nearest filtering for rendering frame
We don't need bilinear filtering here, the corners aren't scaled and the scaled edges are just stretched along one axis.
This commit is contained in:
parent
32e568600f
commit
919fbf0fee
1 changed files with 2 additions and 0 deletions
|
|
@ -140,6 +140,7 @@ tile_mask(cairo_t *cr, cairo_surface_t *surface,
|
|||
|
||||
cairo_set_operator(cr, CAIRO_OPERATOR_OVER);
|
||||
pattern = cairo_pattern_create_for_surface (surface);
|
||||
cairo_pattern_set_filter(pattern, CAIRO_FILTER_NEAREST);
|
||||
|
||||
for (i = 0; i < 4; i++) {
|
||||
fx = i & 1;
|
||||
|
|
@ -222,6 +223,7 @@ tile_source(cairo_t *cr, cairo_surface_t *surface,
|
|||
|
||||
cairo_set_operator(cr, CAIRO_OPERATOR_OVER);
|
||||
pattern = cairo_pattern_create_for_surface (surface);
|
||||
cairo_pattern_set_filter(pattern, CAIRO_FILTER_NEAREST);
|
||||
cairo_set_source(cr, pattern);
|
||||
cairo_pattern_destroy(pattern);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue