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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2011-09-16 19:31:32 +02:00
parent e580565e28
commit cdd75ec407

View file

@ -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;