double lastx=0,lasty=0;
double firstx=0,firsty=0;
int init=1;
- if(log) printf("shape-start %d\n", fill);
while (outline)
{
{
if(((int)(lastx*20) != (int)(firstx*20) ||
(int)(lasty*20) != (int)(firsty*20)) &&
- fill)
+ fill && !init)
{
plotxy p0;
plotxy p1;
}
firstx=x;
firsty=y;
+ init = 0;
}
else if(outline->type == T1_PATHTYPE_LINE)
{
if(log) printf("fix: %f,%f -> %f,%f\n",p0.x,p0.y,p1.x,p1.y);
line(tag, p0, p1, m);
}
- if(log) printf("shape-end\n");
}
int colorcompare(RGBA*a,RGBA*b)
logf("<warning> Too many clip levels.");
clippos --;
}
-
+
startshape(obj);
+ int olddrawmode = drawmode;
swfoutput_setdrawmode(obj, DRAWMODE_CLIP);
swfoutput_drawpath(obj, outline, m);
ShapeSetEnd(tag);
+ swfoutput_setdrawmode(obj, olddrawmode);
tag = InsertTag(tag,ST_PLACEOBJECT2);
cliptags[clippos] = tag;