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 (from parent 1:
8aa7076
)
gcc 2.95.x fixes
author
kramm
<kramm>
Mon, 5 Jun 2006 07:15:46 +0000
(07:15 +0000)
committer
kramm
<kramm>
Mon, 5 Jun 2006 07:15:46 +0000
(07:15 +0000)
lib/modules/swftools.c
patch
|
blob
|
history
diff --git
a/lib/modules/swftools.c
b/lib/modules/swftools.c
index
fbc6bb7
..
b512031
100644
(file)
--- 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)
#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");
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)
{
while(tag)
{
+ int depth;
/* TODO * clip depths
* sprites
*/
/* TODO * clip depths
* sprites
*/
@@
-902,7
+902,7
@@
void swf_RelocateDepth(SWF*swf, char*bitmap)
swf_PlaceObjectFree(&obj);
}
swf_PlaceObjectFree(&obj);
}
- int depth = swf_GetDepth(tag);
+ depth = swf_GetDepth(tag);
if(depth>=0) {
int newdepth = depth+nr;
if(newdepth>65535) {
if(depth>=0) {
int newdepth = depth+nr;
if(newdepth>65535) {