From: kramm Date: Sat, 24 May 2008 15:17:31 +0000 (+0000) Subject: fixed bug in swf_SetFixed(8) X-Git-Tag: buttons-working~189 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=57daf2c90dc409a2aa7030ce6ce996707e99967b fixed bug in swf_SetFixed(8) --- diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 82511d4..05f6ad9 100644 --- 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)); }