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:
9507126
)
fixed bug in swf_SetFixed(8)
author
kramm
<kramm>
Sat, 24 May 2008 15:17:31 +0000
(15:17 +0000)
committer
kramm
<kramm>
Sat, 24 May 2008 15:17:31 +0000
(15:17 +0000)
lib/rfxswf.c
patch
|
blob
|
history
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
82511d4
..
05f6ad9
100644
(file)
--- a/
lib/rfxswf.c
+++ b/
lib/rfxswf.c
@@
-261,7
+261,7
@@
double swf_GetFixed(TAG * t)
}
void swf_SetFixed(TAG * t, double f)
{
- U16 fr = (U16)(f-(int)f)*65536;
+ U16 fr = (U16)((f-(int)f)*65536);
swf_SetU16(t, fr);
swf_SetU16(t, (U16)f - (f<0 && fr!=0));
}
@@
-273,7
+273,7
@@
float swf_GetFixed8(TAG * t)
}
void swf_SetFixed8(TAG * t, float f)
{
- U8 fr = (U8)(f-(int)f)*256;
+ U8 fr = (U8)((f-(int)f)*256);
swf_SetU8(t, fr);
swf_SetU8(t, (U8)f - (f<0 && fr!=0));
}