git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bevel joins
[swftools.git]
/
lib
/
gfxpoly
/
convert.c
diff --git
a/lib/gfxpoly/convert.c
b/lib/gfxpoly/convert.c
index
64cef43
..
9d8ecab
100644
(file)
--- 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;
}
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;
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;