X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftools.c;h=b51203184f4adefb6506c8e85d8e0b0c33dc9e27;hb=e40d573cbf6659328121d0383d6d5ac8acd58c34;hp=fbc6bb78ac0c90a71ed50cb220c8fe7d7c2f6128;hpb=8aa70763b70b1eaacd67aa08df5b4c1774e43ec8;p=swftools.git diff --git a/lib/modules/swftools.c b/lib/modules/swftools.c index fbc6bb7..b512031 100644 --- a/lib/modules/swftools.c +++ b/lib/modules/swftools.c @@ -25,8 +25,7 @@ #define S64 long long SFIXED RFXSWF_SP(SFIXED a1,SFIXED a2,SFIXED b1,SFIXED b2) -{ S64 a; - a = ((S64)a1*(S64)b1+(S64)a2*(S64)b2)>>16; +{ S64 a = ((S64)a1*(S64)b1+(S64)a2*(S64)b2)>>16; SFIXED result = (SFIXED)(a); if(a!=result) fprintf(stderr, "Warning: overflow in matrix multiplication"); @@ -883,6 +882,7 @@ void swf_RelocateDepth(SWF*swf, char*bitmap) while(tag) { + int depth; /* TODO * clip depths * sprites */ @@ -902,7 +902,7 @@ void swf_RelocateDepth(SWF*swf, char*bitmap) swf_PlaceObjectFree(&obj); } - int depth = swf_GetDepth(tag); + depth = swf_GetDepth(tag); if(depth>=0) { int newdepth = depth+nr; if(newdepth>65535) {