git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
46e430a
)
added extra information output in case of bit overflows.
author
kramm
<kramm>
Thu, 21 Oct 2004 17:41:49 +0000
(17:41 +0000)
committer
kramm
<kramm>
Thu, 21 Oct 2004 17:41:49 +0000
(17:41 +0000)
lib/modules/swfshape.c
patch
|
blob
|
history
diff --git
a/lib/modules/swfshape.c
b/lib/modules/swfshape.c
index
51837f2
..
30c57d8
100644
(file)
--- 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) {
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;
}
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) {
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);
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) {
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 = 17;
}
swf_SetBits(t, b-2, 4);