Commit f35bfff4 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d2d1: Properly handle the candidate being the last vertex before the base edge…

d2d1: Properly handle the candidate being the last vertex before the base edge origin in d2d_cdt_fixup(). Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com>
parent c5480a88
......@@ -712,7 +712,12 @@ static BOOL d2d_cdt_fixup(struct d2d_cdt *cdt, const struct d2d_cdt_edge_ref *ba
if (count > 1)
{
if (!d2d_cdt_connect(cdt, &new_base, &candidate, base_edge))
d2d_cdt_edge_next_left(cdt, &next, &candidate);
if (d2d_cdt_edge_destination(cdt, &next) == d2d_cdt_edge_origin(cdt, base_edge))
d2d_cdt_edge_next_left(cdt, &next, base_edge);
else
next = *base_edge;
if (!d2d_cdt_connect(cdt, &new_base, &candidate, &next))
return FALSE;
if (!d2d_cdt_fixup(cdt, &new_base))
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment