if (!s->fillstyle.data) return -1;
}
- // set fillstyle (no gradients yet!)
+ // set fillstyle
s->fillstyle.data[s->fillstyle.n].type = type;
s->fillstyle.data[s->fillstyle.n].id_bitmap = id_bitmap;
b = swf_CountBits(y,b);
if (b<2) b=2;
if(b-2 >= 16) {
- fprintf(stderr, "Bit overflow in swf_ShapeSetLine(1)- %d\n", b);
+ fprintf(stderr, "Bit overflow in swf_ShapeSetLine(1)- %d (%d,%d)\n", b, x,y);
fflush(stdout);
b = 17;
}
if(b<2)
b=2;
if(b-2 >= 16) {
- fprintf(stderr, "Bit overflow in swf_ShapeSetLine(2)- %d\n", b);
+ fprintf(stderr, "Bit overflow in swf_ShapeSetLine(2)- %d (%d)\n", b, y);
b = 17;
}
swf_SetBits(t, b-2, 4);
if(b<2)
b=2;
if(b-2 >= 16) {
- fprintf(stderr, "Bit overflow in swf_ShapeSetLine(3)- %d\n", b);
+ fprintf(stderr, "Bit overflow in swf_ShapeSetLine(3)- %d (%d)\n", b, x);
b = 17;
}
swf_SetBits(t, b-2, 4);
b = swf_CountBits(x,b);
b = swf_CountBits(y,b);
+ if(b-2 >= 16) {
+ fprintf(stderr, "Bit overflow in swf_ShapeSetCurve- %d (%d,%d,%d,%d)\n", b, ax,ay,x,y);
+ b = 17;
+ }
+
swf_SetBits(t,b-2,4);
swf_SetBits(t,x,b);
swf_SetBits(t,y,b);