git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
swf gfxsource
[swftools.git]
/
lib
/
swf
/
swf.c
diff --git
a/lib/swf/swf.c
b/lib/swf/swf.c
index
a5f002f
..
27854cd
100644
(file)
--- a/
lib/swf/swf.c
+++ b/
lib/swf/swf.c
@@
-241,7
+241,7
@@
static map16_t* extractFrame(TAG*startTag, int frame_to_extract)
map16_enumerate(depthmap, increaseAge, 0);
}
}
map16_enumerate(depthmap, increaseAge, 0);
}
}
- return 0;
+ return depthmap;
}
// ---- render handling ----
}
// ---- render handling ----
@@
-539,6
+539,7
@@
gfxdocument_t*swf_open(char*filename)
i->width = (swf.movieSize.xmax - swf.movieSize.xmin) / 20;
i->height = (swf.movieSize.ymax - swf.movieSize.ymin) / 20;
i->width = (swf.movieSize.xmax - swf.movieSize.xmin) / 20;
i->height = (swf.movieSize.ymax - swf.movieSize.ymin) / 20;
+ swf_doc->num_pages = swf.frameCount;
swf_doc->internal = i;
swf_doc->get = 0;
swf_doc->destroy = swf_doc_destroy;
swf_doc->internal = i;
swf_doc->get = 0;
swf_doc->destroy = swf_doc_destroy;