From b80bcf66b284deeb4d44d68a860a1e7857136982 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 14 Oct 2010 20:38:35 +0200 Subject: [PATCH] XCB: Fix for all unbounded operators _cairo_xcb_surface_fixup_unbounded_boxes() calculated a list of boxes that it has to clear to make an unbounded operator work correctly. Then it cleared the boxes that were drawn instead of clearing the list of boxes that it has to clear. The reason that this wasn't noticed before is that there is an optimization in case we have only one box instead of a whole list of boxes. This hid the bug. This fixes the "unbounded-operator" test case. 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 7258c59db..e98148a68 100644 --- a/src/cairo-xcb-surface-render.c +++ b/src/cairo-xcb-surface-render.c @@ -2331,7 +2331,7 @@ _cairo_xcb_surface_fixup_unbounded_boxes (cairo_xcb_surface_t *dst, status = _render_fill_boxes (dst, CAIRO_OPERATOR_CLEAR, CAIRO_COLOR_TRANSPARENT, - boxes); + &clear); } _cairo_boxes_fini (&clear);