summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-core-compositor.c
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2014-10-09 19:46:16 -0700
committerBryce Harrington <bryce@osg.samsung.com>2014-10-10 18:09:14 -0700
commit45934f69cd158b7bb5632f5e4334a156795147f4 (patch)
treea5db335cbadbedac9ad46ec9c021b039ff45422a /src/cairo-xlib-core-compositor.c
parent3cd7ed1f320c3ce330da3d3153c39b613e4a5a15 (diff)
downloadcairo-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-xlib-core-compositor.c')
-rw-r--r--src/cairo-xlib-core-compositor.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cairo-xlib-core-compositor.c b/src/cairo-xlib-core-compositor.c
index 9398079b4..5babcc81b 100644
--- a/src/cairo-xlib-core-compositor.c
+++ b/src/cairo-xlib-core-compositor.c
@@ -292,9 +292,7 @@ render_boxes (cairo_xlib_surface_t *dst,
const cairo_pattern_t *pattern,
cairo_boxes_t *boxes)
{
- double pad;
-
- if (_cairo_pattern_analyze_filter (pattern, &pad) != CAIRO_FILTER_NEAREST)
+ if (pattern->filter != CAIRO_FILTER_NEAREST)
return fallback_boxes (dst, pattern, boxes);
switch (pattern->extend) {