From cdd75ec407f1f9148acc4267b07a874245c1ddf7 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 16 Sep 2011 19:31:32 +0200 Subject: [PATCH] xcb: Use a mask in _composite_boxes() when needed This doesn't just need a clip without any path, it also needs pixel aligned boxes. This improves the result for unaligned boxes in tighten-bounds. Signed-off-by: Uli Schlachter --- src/cairo-xcb-surface-render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-xcb-surface-render.c b/src/cairo-xcb-surface-render.c index c8171c182..1d46ffd46 100644 --- a/src/cairo-xcb-surface-render.c +++ b/src/cairo-xcb-surface-render.c @@ -2515,8 +2515,8 @@ _composite_boxes (cairo_xcb_surface_t *dst, cairo_boxes_t *boxes, const cairo_composite_rectangles_t *extents) { - cairo_bool_t need_clip_mask = extents->clip->path != NULL; cairo_clip_t *clip = extents->clip; + cairo_bool_t need_clip_mask = ! _cairo_clip_is_region (clip); cairo_region_t *clip_region = _cairo_clip_get_region (clip); cairo_status_t status;