- if(draw->lastx < draw->bbox.xmin) draw->bbox.xmin = draw->lastx;
- if(draw->lasty < draw->bbox.ymin) draw->bbox.ymin = draw->lasty;
- if(draw->lastx > draw->bbox.xmax) draw->bbox.xmax = draw->lastx;
- if(draw->lasty > draw->bbox.ymax) draw->bbox.ymax = draw->lasty;
- if(x < draw->bbox.xmin) draw->bbox.xmin = x;
- if(y < draw->bbox.ymin) draw->bbox.ymin = y;
- if(x > draw->bbox.xmax) draw->bbox.xmax = x;
- if(y > draw->bbox.ymax) draw->bbox.ymax = y;
- if(tx < draw->bbox.xmin) draw->bbox.xmin = tx;
- if(ty < draw->bbox.ymin) draw->bbox.ymin = ty;
- if(tx > draw->bbox.xmax) draw->bbox.xmax = tx;
- if(ty > draw->bbox.ymax) draw->bbox.ymax = ty;
- swf_ShapeSetCurve(draw->tag,draw->shape, tx-draw->lastx,ty-draw->lasty, x-tx,y-ty);
- draw->lastx = x;
- draw->lasty = y;
- draw->pos = *to;
-}
-void swf_DrawerCubicTo(SWFSHAPEDRAWER*draw, FPOINT* c1, FPOINT* c2, FPOINT* to)
-{
- /*TODO*/
- draw->pos = *to;
-}
-void swf_DrawerConicTo(SWFSHAPEDRAWER*draw, FPOINT* c, FPOINT* to)
-{
- FPOINT* pos = &draw->pos;
- FPOINT c1,c2;
- c1.x = (pos->x + 2 * c->x) / 3;
- c1.y = (pos->y + 2 * c->y) / 3;
- c2.x = (2 * c->x + to->x) / 3;
- c2.y = (2 * c->y + to->y) / 3;
- swf_DrawerCubicTo(draw, &c1,&c2,to);
+ if(sdraw->lastx < sdraw->bbox.xmin) sdraw->bbox.xmin = sdraw->lastx;
+ if(sdraw->lasty < sdraw->bbox.ymin) sdraw->bbox.ymin = sdraw->lasty;
+ if(sdraw->lastx > sdraw->bbox.xmax) sdraw->bbox.xmax = sdraw->lastx;
+ if(sdraw->lasty > sdraw->bbox.ymax) sdraw->bbox.ymax = sdraw->lasty;
+ if(x < sdraw->bbox.xmin) sdraw->bbox.xmin = x;
+ if(y < sdraw->bbox.ymin) sdraw->bbox.ymin = y;
+ if(x > sdraw->bbox.xmax) sdraw->bbox.xmax = x;
+ if(y > sdraw->bbox.ymax) sdraw->bbox.ymax = y;
+ if(tx < sdraw->bbox.xmin) sdraw->bbox.xmin = tx;
+ if(ty < sdraw->bbox.ymin) sdraw->bbox.ymin = ty;
+ if(tx > sdraw->bbox.xmax) sdraw->bbox.xmax = tx;
+ if(ty > sdraw->bbox.ymax) sdraw->bbox.ymax = ty;
+ swf_ShapeSetCurve(sdraw->tag,sdraw->shape, tx-sdraw->lastx,ty-sdraw->lasty, x-tx,y-ty);
+ sdraw->lastx = x;
+ sdraw->lasty = y;