X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfshape.c;h=bcca89f214608a767e3b19154bb1f0e770d283a7;hb=ab2f7a4cd0eda09ff3af29058c45d098f869b598;hp=b7152484c4461e5be9b0e7564f38be5439f6d2c3;hpb=644837a3d0f18ac76d55c9ba438246cb5a2927d6;p=swftools.git diff --git a/lib/modules/swfshape.c b/lib/modules/swfshape.c index b715248..bcca89f 100644 --- a/lib/modules/swfshape.c +++ b/lib/modules/swfshape.c @@ -349,7 +349,12 @@ int swf_ShapeSetMove(TAG * t,SHAPE * s,S32 x,S32 y) b = swf_CountBits(x,0); b = swf_CountBits(y,b); - + + if(b>31) { + fprintf(stderr, "Warning: bad moveTo (%f,%f)\n", x/20.0, y/20.0); + b=31; + } + swf_SetBits(t,b,5); swf_SetBits(t,x,b); swf_SetBits(t,y,b);