Skip to content

Commit

Permalink
bo-rectangular: Emit subsummed boxes for overlapping edges
Browse files Browse the repository at this point in the history
Fixes bug-bo-collins

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49446
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed May 23, 2012
1 parent 7b2f787 commit c09be68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cairo-bentley-ottmann-rectangular.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ active_edges_to_traps (sweep_line_t *sweep)
}

if (winding == 0) {
if (left->right != NULL)
edge_end_box (sweep, left, top);
pos = right;
continue;
}
Expand Down Expand Up @@ -557,7 +559,7 @@ sweep_line_delete_edge (sweep_line_t *sweep, edge_t *edge)
}

static inline cairo_bool_t
sweep_line_delete (sweep_line_t *sweep, rectangle_t *rectangle)
sweep_line_delete (sweep_line_t *sweep, rectangle_t *rectangle)
{
cairo_bool_t update;

Expand Down Expand Up @@ -651,7 +653,6 @@ _cairo_bentley_ottmann_tessellate_rectangular (rectangle_t **rectangles,
active_edges_to_traps (&sweep_line);
update = FALSE;
}

sweep_line.current_y = rectangle->bottom;
}

Expand Down

0 comments on commit c09be68

Please sign in to comment.