summaryrefslogtreecommitdiff
path: root/src/cairo-path-in-fill.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-11-11 11:35:14 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-11-13 11:36:43 +0000
commit20fc2a2f92e27082a8806b9acb4b904dc84da672 (patch)
treecb8586f58cfd3f2f1137d1dae783246b540824ec /src/cairo-path-in-fill.c
parent9afad537301529a5a4b4ddf8b7e4425002ea39c7 (diff)
downloadcairo-20fc2a2f92e27082a8806b9acb4b904dc84da672.tar.gz
[in-fill] Fixup boundary insideness testing
Benjamin Otte noticed that the top-left vertex was now included within the fill extents. Having updated the test case to check the insideness conditions as defined by flash, fix the edge handling to match.
Diffstat (limited to 'src/cairo-path-in-fill.c')
-rw-r--r--src/cairo-path-in-fill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-path-in-fill.c b/src/cairo-path-in-fill.c
index f9920eafe..fcac9b134 100644
--- a/src/cairo-path-in-fill.c
+++ b/src/cairo-path-in-fill.c
@@ -121,7 +121,7 @@ _cairo_in_fill_add_edge (cairo_in_fill_t *in_fill,
return;
/* edge lies wholly to the right */
- if (p1->x > in_fill->x && p2->x > in_fill->x)
+ if (p1->x >= in_fill->x && p2->x >= in_fill->x)
return;
if ((p1->x <= in_fill->x && p2->x <= in_fill->x) ||