From: kramm Date: Tue, 22 Feb 2005 20:04:09 +0000 (+0000) Subject: fixed png2swf -C bug. X-Git-Tag: release-0-7-0~211 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=1450e6bbd2d56405dc90a6063635d80ca92e910e fixed png2swf -C bug. --- diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 1950487..580a55d 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -668,7 +668,7 @@ int swf_SetMatrix(TAG * t,MATRIX * m) return 0; } -int swf_GetCXForm(TAG * t,CXFORM * cx,U8 alpha) //FIXME: alpha should be type bool +int swf_GetCXForm(TAG * t,CXFORM * cx,U8 alpha) { CXFORM cxf; int hasadd; int hasmul; @@ -1437,6 +1437,7 @@ int swf_WriteSWF(int handle, SWF * swf) // Writes SWF to file, returns leng if(handle<0) { writer_init_nullwriter(&writer); len = swf_WriteSWF2(&writer, swf); + return len; } writer_init_filewriter(&writer, handle); len = swf_WriteSWF2(&writer, swf);