kwo pushed a commit to branch master.
commit eee318461def892ed0d87aad36b18a9e98b3fda0
Author: Kim Woelders <[email protected]>
Date: Sun Mar 24 18:50:33 2013 +0100
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.
---
src/lib/polygon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/polygon.c b/src/lib/polygon.c
index 90e6956..ebcfa94 100644
--- a/src/lib/polygon.c
+++ b/src/lib/polygon.c
@@ -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; \
--
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar