From: kramm Date: Sat, 23 Jul 2005 08:23:38 +0000 (+0000) Subject: prettyfied dump_matrix() output X-Git-Tag: release-0-7-0~25 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=01bb33639e44eebe4322c8759197114b955b990a;p=swftools.git prettyfied dump_matrix() output --- diff --git a/lib/modules/swfdump.c b/lib/modules/swfdump.c index 3dd317c..64441bb 100644 --- a/lib/modules/swfdump.c +++ b/lib/modules/swfdump.c @@ -32,9 +32,12 @@ void swf_DumpHeader(FILE * f,SWF * swf) void swf_DumpMatrix(FILE * f,MATRIX * m) { if (!f) f = stderr; - fprintf(f,"[%08x][%08x]\n",m->sx,m->r1); + /*fprintf(f,"[%08x][%08x]\n",m->sx,m->r1); fprintf(f,"[%08x][%08x]\n",m->r0,m->sy); - fprintf(f," %08x, %08x\n",m->tx,m->ty); + fprintf(f," %08x, %08x\n",m->tx,m->ty);*/ + fprintf(f,"[%08x][%08x] %5.2f %5.2f %5.2f\n",m->sx,m->r1, m->sx/65536.0,m->r1/65536.0, m->tx/20.0); + fprintf(f,"[%08x][%08x] %5.2f %5.2f %5.2f\n",m->r0,m->sy, m->r0/65536.0,m->sy/65536.0, m->ty/20.0 ); + fprintf(f," %08x, %08x \n",m->tx,m->ty); } void swf_DumpTag(FILE * f,TAG * t)