X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfshape.c;h=bcca89f214608a767e3b19154bb1f0e770d283a7;hb=ab2f7a4cd0eda09ff3af29058c45d098f869b598;hp=31635569a778771db0380f0b5290c492b2621084;hpb=6edd030417e792d2325d5d6b89a6495ab8798cba;p=swftools.git diff --git a/lib/modules/swfshape.c b/lib/modules/swfshape.c index 3163556..bcca89f 100644 --- a/lib/modules/swfshape.c +++ b/lib/modules/swfshape.c @@ -21,6 +21,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "../rfxswf.h" + #define SF_MOVETO 0x01 #define SF_FILL0 0x02 #define SF_FILL1 0x04 @@ -347,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);