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 negative twip parsing problem
[swftools.git]
/
src
/
swfdump.c
diff --git
a/src/swfdump.c
b/src/swfdump.c
index
9a2dc70
..
3978d5c
100644
(file)
--- a/
src/swfdump.c
+++ b/
src/swfdump.c
@@
-319,7
+319,7
@@
SWFFONT**fonts;
void textcallback(void*self, int*glyphs, int*ypos, int nr, int fontid, int fontsize, int startx, int starty, RGBA*color)
{
int font=-1,t;
void textcallback(void*self, int*glyphs, int*ypos, int nr, int fontid, int fontsize, int startx, int starty, RGBA*color)
{
int font=-1,t;
- printf(" <%2d glyphs in font %2d, color #%02x%02x%02x%02x> ",nr, fontid, color->r, color->g, color->b, color->a);
+ printf(" <%2d glyphs in font %2d size %d, color #%02x%02x%02x%02x> ",nr, fontid, fontsize, color->r, color->g, color->b, color->a);
for(t=0;t<fontnum;t++)
{
if(fonts[t]->id == fontid) {
for(t=0;t<fontnum;t++)
{
if(fonts[t]->id == fontid) {
@@
-964,11
+964,11
@@
int main (int argc,char ** argv)
#endif
close(f);
#endif
close(f);
-
- if(action && swf.fileVersion>=9) {
- fprintf(stderr, "Actionscript parsing (-a) not yet supported for SWF versions>=9\n");
- action = 0;
- }
+
+ //if(action && swf.fileVersion>=9) {
+ // fprintf(stderr, "Actionscript parsing (-a) not yet supported for SWF versions>=9\n");
+ // action = 0;
+ //}
xsize = (swf.movieSize.xmax-swf.movieSize.xmin)/20;
ysize = (swf.movieSize.ymax-swf.movieSize.ymin)/20;
xsize = (swf.movieSize.xmax-swf.movieSize.xmin)/20;
ysize = (swf.movieSize.ymax-swf.movieSize.ymin)/20;
@@
-1265,6
+1265,12
@@
int main (int argc,char ** argv)
else
printf("\n");
}
else
printf("\n");
}
+ else if(tag->id == ST_DEFINESCALINGGRID) {
+ U16 id = swf_GetU16(tag);
+ SRECT r;
+ swf_GetRect(tag, &r);
+ printf(" (%.2f,%.2f)-(%.2f,%.2f)\n", r.xmin/20.0, r.ymin/20.0, r.xmax/20.0, r.ymax/20.0);
+ }
else if(tag->id == ST_PLACEOBJECT2 || tag->id == ST_PLACEOBJECT3) {
}
else if(tag->id == ST_NAMECHARACTER || tag->id==ST_DEFINEFONTNAME) {
else if(tag->id == ST_PLACEOBJECT2 || tag->id == ST_PLACEOBJECT3) {
}
else if(tag->id == ST_NAMECHARACTER || tag->id==ST_DEFINEFONTNAME) {
@@
-1310,6
+1316,9
@@
int main (int argc,char ** argv)
actions = swf_ActionGet(tag);
swf_DumpActions(actions, myprefix);
}
actions = swf_ActionGet(tag);
swf_DumpActions(actions, myprefix);
}
+ else if(tag->id == ST_DOABC && action) {
+ swf_DissassembleABC(tag);
+ }
else if(tag->id == ST_DOINITACTION && action) {
ActionTAG*actions;
swf_GetU16(tag); // id
else if(tag->id == ST_DOINITACTION && action) {
ActionTAG*actions;
swf_GetU16(tag); // id