X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fpng2swf.c;h=d3247d8d263090954a67fd5a0c44b3336c1e9805;hb=f03de7ce28ee2c39fdb9f658359359429135c862;hp=578edfd5de3706e25f9fbda9e649bb610f36c2ef;hpb=f4e9809805ebc951996ae45e698fd6d74e348c7a;p=swftools.git diff --git a/src/png2swf.c b/src/png2swf.c index 578edfd..d3247d8 100644 --- a/src/png2swf.c +++ b/src/png2swf.c @@ -50,7 +50,7 @@ TAG *MovieStart(SWF * swf, int framerate, int dx, int dy) t = swf->firstTag = swf_InsertTag(NULL, ST_SETBACKGROUNDCOLOR); rgb.r = rgb.g = rgb.b = rgb.a = 0x00; - rgb.g = 0xff; + //rgb.g = 0xff; <--- handy for testing alpha conversion swf_SetRGB(t, &rgb); return t; @@ -66,7 +66,7 @@ int MovieFinish(SWF * swf, TAG * t, char *sname) else { if (!sname) sname = "output.swf"; - handle = open(sname, O_RDWR | O_CREAT | O_TRUNC, 0666); + handle = open(sname, O_BINARY | O_RDWR | O_CREAT | O_TRUNC, 0666); } if FAILED (swf_WriteSWF(handle, swf)) if (VERBOSE(1)) @@ -349,7 +349,7 @@ void applyfilter4(int mode, U8*src, U8*old, U8*dest, int width) lastr = dest[1]; lastg = dest[2]; lastb = dest[3]; - upperlastr = old[0]; + upperlasta = old[0]; upperlastr = old[1]; upperlastg = old[2]; upperlastb = old[3];