From: kramm Date: Thu, 21 Oct 2004 17:41:49 +0000 (+0000) Subject: added extra information output in case of bit overflows. X-Git-Tag: release-0-6-3~304 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;ds=sidebyside;h=0953475505a56561218e6ab79d3656466270e148;p=swftools.git added extra information output in case of bit overflows. --- diff --git a/lib/modules/swfshape.c b/lib/modules/swfshape.c index 51837f2..30c57d8 100644 --- a/lib/modules/swfshape.c +++ b/lib/modules/swfshape.c @@ -421,7 +421,7 @@ int swf_ShapeSetLine(TAG * t,SHAPE * s,S32 x,S32 y) 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; } @@ -437,7 +437,7 @@ int swf_ShapeSetLine(TAG * t,SHAPE * s,S32 x,S32 y) 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); @@ -449,7 +449,7 @@ int swf_ShapeSetLine(TAG * t,SHAPE * s,S32 x,S32 y) 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);