diff options
author | Carl Worth <cworth@cworth.org> | 2005-04-12 09:14:14 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-04-12 09:14:14 +0000 |
commit | 369d1bf28f589d4aee7773180038a9564f14db19 (patch) | |
tree | 10c0d642981d50e5ee0ec349be2dcab16df479ad /src/cairo-pattern.c | |
parent | 439a94cc7b5f8982d469cdb6665be3cd21944cc5 (diff) |
Default to CAIRO_FILTER_GOOD rather than CAIRO_FILTER_BEST.
Optimize to use CAIRO_FILTER_NEAREST when the pattern matrix is an integer translation.
Diffstat (limited to 'src/cairo-pattern.c')
-rw-r--r-- | src/cairo-pattern.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c index 177105f64..c0aa6fff8 100644 --- a/src/cairo-pattern.c +++ b/src/cairo-pattern.c @@ -1076,7 +1076,7 @@ _cairo_pattern_acquire_surface_for_surface (cairo_surface_pattern_t *pattern, attr->x_offset = -x; attr->y_offset = -y; attr->extend = CAIRO_EXTEND_NONE; - attr->filter = CAIRO_FILTER_BEST; + attr->filter = CAIRO_FILTER_GOOD; cairo_matrix_init_identity (&attr->matrix); } @@ -1107,6 +1107,7 @@ _cairo_pattern_acquire_surface_for_surface (cairo_surface_pattern_t *pattern, cairo_matrix_init_identity (&attr->matrix); attr->x_offset = tx; attr->y_offset = ty; + attr->filter = CAIRO_FILTER_NEAREST; } else { |