X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxpoly%2Fconvert.c;h=9d8ecab32508ab806916ff7aab4880d2eb4a13b1;hp=64cef43fa3bdf47b41552ff616a3f1c60b24bdd2;hb=be6d3cbb485c5f7e9dd6fe22bf54245c79b10b71;hpb=3c6c2c2a98a273483285119b9cc0b782aa8a79c8 diff --git a/lib/gfxpoly/convert.c b/lib/gfxpoly/convert.c index 64cef43..9d8ecab 100644 --- a/lib/gfxpoly/convert.c +++ b/lib/gfxpoly/convert.c @@ -446,6 +446,9 @@ gfxline_t*gfxline_from_gfxpoly(gfxpoly_t*poly) pos = stroke->num_points-1; incr = -1; } + /* TODO: keeping the up/down order intact increases the polygon size + considerably. If this is going to be an even/odd polygon, + we could ignore it and save some space */ if(last.x != stroke->points[pos].x || last.y != stroke->points[pos].y) { l[count].x = stroke->points[pos].x * poly->gridsize; l[count].y = stroke->points[pos].y * poly->gridsize;