+static void swf_Render_AddShape(RENDERBUF*dest,dummyshape_t*s)
+{
+ renderbuf_internal*i = (renderbuf_internal*)dest->internal;
+
+ s->next = 0;
+ if(i->dshapes_next)
+ i->dshapes_next->next = s;
+ i->dshapes_next = s;
+ if(!i->dshapes) {
+ i->dshapes = s;
+ }
+}
+
+static SHAPE2* linestyle2fillstyle(SHAPE2*shape)
+{
+ SHAPE2*s = rfx_calloc(sizeof(SHAPE2));
+ int t;
+ s->numfillstyles = shape->numlinestyles;
+ s->fillstyles = (FILLSTYLE*)rfx_calloc(sizeof(FILLSTYLE)*shape->numlinestyles);
+ s->lines = (SHAPELINE*)rfx_calloc(sizeof(SHAPELINE)*shape->numlinestyles);
+ for(t=0;t<shape->numlinestyles;t++) {
+ s->lines[t].fillstyle0 = t+1;
+ s->fillstyles[t].type = FILL_SOLID;
+ s->fillstyles[t].color = shape->linestyles[t].color;
+ }
+ return s;
+}
+