{
struct qspline q[128];
struct cspline c;
+ double quality = 80;
+ double maxerror = (500-(quality*5)>1?500-(quality*5):1)/20.0;
+
+ int num = approximate3(&c, q, 128, maxerror*maxerror);
+ int t;
+
c.start.x = draw->pos.x;
c.start.y = draw->pos.y;
c.control1.x = control1->x;
c.control2.y = control2->y;
c.end.x = to->x;
c.end.y = to->y;
- double quality = 80;
- double maxerror = (500-(quality*5)>1?500-(quality*5):1)/20.0;
- int num = approximate3(&c, q, 128, maxerror*maxerror);
- int t;
for(t=0;t<num;t++) {
FPOINT mid;
FPOINT to;
while(*s) {
SHAPE*shape;
SHAPE2*shape2;
+ SHAPELINE*l;
U32 c = readUTF8char(&s);
int g = font->ascii2glyph[c];
shape = font->glyph[g].shape;
shape2 = swf_ShapeToShape2(shape);
- SHAPELINE*l = shape2->lines;
+ l = shape2->lines;
while(l) {
if(l->type == moveTo) {
FPOINT to;
void swf_RelocateDepth(SWF*swf, char*bitmap)
{
TAG*tag;
- tag = swf->firstTag;
int nr;
+ tag = swf->firstTag;
for(nr=65535;nr>=0;nr--) {
if(bitmap[nr] != 0)
break;
memset(&gradient, 0, sizeof(GRADIENT));
while(*p) {
char*posstr,*colorstr;
+ float pos;
+ RGBA color;
posstr = gradient_getToken(&p);
if(!*posstr)
break;
- float pos = parsePercent(posstr);
+ pos = parsePercent(posstr);
if(!*p) syntaxerror("Error in shape data: Color expected after %s", posstr);
colorstr = gradient_getToken(&p);
- RGBA color = parseColor(colorstr);
+ color = parseColor(colorstr);
if(gradient.num == sizeof(gradient.ratios)/sizeof(gradient.ratios[0])) {
warning("gradient record too big- max size is 8, rest ignored");
break;