From cb30f215c366a62f965f58cff33139120cdececb Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 10 Jan 2005 17:38:27 +0000 Subject: [PATCH] added swf_ShapeAddFillStyle2(). --- lib/modules/swfshape.c | 4 ++++ lib/rfxswf.h | 1 + 2 files changed, 5 insertions(+) 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); diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 6ea8900..9225807 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -431,6 +431,7 @@ int swf_ShapeAddLineStyle(SHAPE * s,U16 width,RGBA * color); int swf_ShapeAddSolidFillStyle(SHAPE * s,RGBA * color); int swf_ShapeAddBitmapFillStyle(SHAPE * s,MATRIX * m,U16 id_bitmap,int clip); int swf_ShapeAddGradientFillStyle(SHAPE * s,MATRIX * m,GRADIENT* gradient,int radial); +int swf_ShapeAddFillStyle2(SHAPE * s,FILLSTYLE*fs); int swf_SetShapeStyles(TAG * t,SHAPE * s); int swf_ShapeCountBits(SHAPE * s,U8 * fbits,U8 * lbits); -- 1.7.10.4