git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added new function finishPage(), to be called after links are processed
[swftools.git]
/
lib
/
devices
/
polyops.c
diff --git
a/lib/devices/polyops.c
b/lib/devices/polyops.c
index
1a71c1f
..
ab9aa8c
100644
(file)
--- a/
lib/devices/polyops.c
+++ b/
lib/devices/polyops.c
@@
-152,8
+152,8
@@
void polyops_fill(struct _gfxdevice*dev, gfxline_t*line, gfxcolor_t*color)
if(i->clip) {
gfxpoly_t*old = poly;
if(i->clip) {
gfxpoly_t*old = poly;
- poly = gfxpoly_intersect(poly, i->clip->poly);
- gfxpoly_free(poly);
+ poly = gfxpoly_intersect(poly, i->clip->poly);
+ gfxpoly_free(old);
}
addtounion(dev,poly);
gfxline_t*gfxline = gfxpoly_to_gfxline(poly);
}
addtounion(dev,poly);
gfxline_t*gfxline = gfxpoly_to_gfxline(poly);
@@
-259,6
+259,10
@@
gfxresult_t* polyops_finish(struct _gfxdevice*dev)
{
dbg("polyops_finish");
internal_t*i = (internal_t*)dev->internal;
{
dbg("polyops_finish");
internal_t*i = (internal_t*)dev->internal;
+
+ if(i->polyunion) {
+ gfxpoly_free(i->polyunion);i->polyunion=0;
+ }
if(i->out) {
return i->out->finish(i->out);
} else {
if(i->out) {
return i->out->finish(i->out);
} else {