forked from old/legacy-imlib2
Fix drawing of closed polygons in certain situations (ticket 2309).
Drawing of the closing line could be skipped depending on the specific vertex coordinates (and order). Can't say that I undestand the code completely but this change seems to fix the problem, and I don't think it can cause trouble.
This commit is contained in:
parent
d943d1ebea
commit
eee318461d
|
@ -299,7 +299,7 @@ do { \
|
|||
for (m = 0; (m < nactive_edges) && (edge[m].index != i); m++); \
|
||||
\
|
||||
if ((m == nactive_edges) && (i < nvertices) && \
|
||||
(nactive_edges < (nvertices - 1))) \
|
||||
(nactive_edges < nvertices)) \
|
||||
{ \
|
||||
ImlibPoint *v0, *v1, *w; \
|
||||
PolyEdge *ne; \
|
||||
|
|
Loading…
Reference in New Issue