mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 11:08:12 +02:00
bentley-ottmann: Skip intersection check if the bounds do not overlap
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
2ab171467b
commit
247c42357c
1 changed files with 4 additions and 0 deletions
|
|
@ -1078,6 +1078,10 @@ _cairo_bo_event_queue_insert_if_intersect_below_current_y (cairo_bo_event_queue_
|
|||
{
|
||||
cairo_bo_point32_t intersection;
|
||||
|
||||
if (MAX (left->edge.line.p1.x, left->edge.line.p2.x) <=
|
||||
MIN (right->edge.line.p1.x, right->edge.line.p2.x))
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
||||
if (_line_equal (&left->edge.line, &right->edge.line))
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue