X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfdump.c;h=b6572d867bf3fc243cf19659c91b41a5b3b43a89;hb=9f3fd388f9d1f2818973e700809f0ef1b897444a;hp=535befa20c585cdea2f0844f38bbe449b403dd61;hpb=65e37b404a867c25df5424f0ebed93515c991761;p=swftools.git diff --git a/lib/modules/swfdump.c b/lib/modules/swfdump.c index 535befa..b6572d8 100644 --- a/lib/modules/swfdump.c +++ b/lib/modules/swfdump.c @@ -40,6 +40,16 @@ void swf_DumpMatrix(FILE * f,MATRIX * m) fprintf(f," %08x, %08x \n",m->tx,m->ty); } +void swf_DumpGradient(FILE * f,GRADIENT * g) +{ if (!f) f = stderr; + fprintf(f, "%d gradient steps\n", g->num); + int t; + for(t=0;tnum;t++) { + RGBA c = g->rgba[t]; + fprintf(f, "%d) %02x%02x%02x%02x at %d\n", t, c.r,c.g,c.b,c.a, g->ratios[t]); + } +} + void swf_DumpTag(FILE * f,TAG * t) { int i; if (!f) f = stderr;