Skip to content

Commit

Permalink
XCB: Fix for all unbounded operators
Browse files Browse the repository at this point in the history
_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 <psychon@znc.in>
  • Loading branch information
Uli Schlachter authored and Chris Wilson committed Oct 21, 2010
1 parent 4465ff7 commit b80bcf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cairo-xcb-surface-render.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b80bcf6

Please sign in to comment.