git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0c14fe2
)
added swf_ShapeAddFillStyle2().
author
kramm
<kramm>
Mon, 10 Jan 2005 17:38:27 +0000
(17:38 +0000)
committer
kramm
<kramm>
Mon, 10 Jan 2005 17:38:27 +0000
(17:38 +0000)
lib/modules/swfshape.c
patch
|
blob
|
history
lib/rfxswf.h
patch
|
blob
|
history
diff --git
a/lib/modules/swfshape.c
b/lib/modules/swfshape.c
index
04cdf71
..
3c6c4b6
100644
(file)
--- 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);
}
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);
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
(file)
--- 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_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);
int swf_SetShapeStyles(TAG * t,SHAPE * s);
int swf_ShapeCountBits(SHAPE * s,U8 * fbits,U8 * lbits);