Skip to content

Commit

Permalink
core: dropped unnecessary local variable in _cairo_composite_rectangl…
Browse files Browse the repository at this point in the history
…es_intersect()

Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt@gr13.net>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
  • Loading branch information
Enrico Weigelt, metux IT consult authored and Bryce Harrington committed Jan 14, 2016
1 parent b371b01 commit 047ba66
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cairo-composite-rectangles.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,8 @@ static cairo_int_status_t
_cairo_composite_rectangles_intersect (cairo_composite_rectangles_t *extents,
const cairo_clip_t *clip)
{
cairo_bool_t ret;

ret = _cairo_rectangle_intersect (&extents->bounded, &extents->mask);
if (! ret && extents->is_bounded & CAIRO_OPERATOR_BOUND_BY_MASK)
if ((!_cairo_rectangle_intersect (&extents->bounded, &extents->mask)) &&
(extents->is_bounded & CAIRO_OPERATOR_BOUND_BY_MASK))
return CAIRO_INT_STATUS_NOTHING_TO_DO;

if (extents->is_bounded == (CAIRO_OPERATOR_BOUND_BY_MASK | CAIRO_OPERATOR_BOUND_BY_SOURCE)) {
Expand Down

0 comments on commit 047ba66

Please sign in to comment.