diff options
author | Bill Spitzak <spitzak@gmail.com> | 2014-10-09 19:46:16 -0700 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2014-10-10 18:09:14 -0700 |
commit | 45934f69cd158b7bb5632f5e4334a156795147f4 (patch) | |
tree | a5db335cbadbedac9ad46ec9c021b039ff45422a /src/cairo-composite-rectangles.c | |
parent | 3cd7ed1f320c3ce330da3d3153c39b613e4a5a15 (diff) | |
download | cairo-45934f69cd158b7bb5632f5e4334a156795147f4.tar.gz |
image: Corrected extents calculations
New implementations of _cairo_pattern_sampled_area and _cairo_pattern_get_extents
which produce a more accurate bounding box. These do not depend on side-effects
of analyze_filter, can handle different horizontal and vertical scales, filters
wider than 1 for down-scaling, and compute a somewhat tighter bounding box
in most cases.
I removed the pad output of _cairo_pattern_analyze_filter as it is unused.
Reviewed-by: Bryce Harrington <b.harrington@samsung.com>
Diffstat (limited to 'src/cairo-composite-rectangles.c')
-rw-r--r-- | src/cairo-composite-rectangles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-composite-rectangles.c b/src/cairo-composite-rectangles.c index e6639d0c3..6c3e97d4a 100644 --- a/src/cairo-composite-rectangles.c +++ b/src/cairo-composite-rectangles.c @@ -57,7 +57,7 @@ _cairo_composite_reduce_pattern (const cairo_pattern_t *src, if (dst->base.type == CAIRO_PATTERN_TYPE_SOLID) return; - dst->base.filter = _cairo_pattern_analyze_filter (&dst->base, NULL), + dst->base.filter = _cairo_pattern_analyze_filter (&dst->base); tx = ty = 0; if (_cairo_matrix_is_pixman_translation (&dst->base.matrix, |