X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfshape.c;h=3c6c4b6562a9df1bafc473fa29545010978f8c75;hb=38c19185b95fb1c520088809254ab915db31ff5c;hp=0033f40cb4f73109788c69e48814a500eccf5069;hpb=695383ebfdb4f793da19f7da8df24aee35b468b8;p=swftools.git diff --git a/lib/modules/swfshape.c b/lib/modules/swfshape.c index 0033f40..3c6c4b6 100644 --- a/lib/modules/swfshape.c +++ b/lib/modules/swfshape.c @@ -297,6 +297,10 @@ int swf_ShapeAddFillStyle(SHAPE * s,U8 type,MATRIX * m,RGBA * color,U16 id_bitma return (++s->fillstyle.n); } +int swf_ShapeAddFillStyle2(SHAPE * s,FILLSTYLE*fs) +{ + return swf_ShapeAddFillStyle(s, fs->type, &fs->m, &fs->color, fs->id_bitmap, &fs->gradient); +} int swf_ShapeAddSolidFillStyle(SHAPE * s,RGBA * color) { return swf_ShapeAddFillStyle(s,FILL_SOLID,NULL,color,0,0); @@ -912,6 +916,7 @@ void swf_ParseDefineShape(TAG*tag, SHAPE2*shape) else { fprintf(stderr, "parseDefineShape must be called with a shape tag"); } + swf_SetTagPos(tag, 0); id = swf_GetU16(tag); //id memset(shape, 0, sizeof(SHAPE2));