summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-26 00:35:52 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-26 11:16:32 +0100
commit3c6e4311fb3b9fe400555a8d97193fc87974899b (patch)
tree35a96f3ad1d5161c34c763a946933035afbe4295
parent535b4e970cdbb459be621cecafd7f91ca4698396 (diff)
bentley-ottmann: Only check the pairs of coordinates for equality.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/cairo-bentley-ottmann.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-bentley-ottmann.c b/src/cairo-bentley-ottmann.c
index fdb27442..7820dad3 100644
--- a/src/cairo-bentley-ottmann.c
+++ b/src/cairo-bentley-ottmann.c
@@ -1329,7 +1329,7 @@ edges_colinear (const cairo_bo_edge_t *a, const cairo_bo_edge_t *b)
*/
if (p != 0) {
/* colinear if either end-point are coincident */
- return ((p >> 1) & p) != 0;
+ return ((p >> 1) & p) & 5;
} else if (a->edge.line.p1.y < b->edge.line.p1.y) {
return edge_compare_for_y_against_x (b,
a->edge.line.p1.y,