X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fmodules%2Fswfshape.c;h=3c6c4b6562a9df1bafc473fa29545010978f8c75;hp=04cdf716d966f22be5ebc003c74826412d6e84b4;hb=cb30f215c366a62f965f58cff33139120cdececb;hpb=0c14fe25556ee2416451e65cac8caaa7ebfce15d diff --git a/lib/modules/swfshape.c b/lib/modules/swfshape.c index 04cdf71..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);