X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fpng2swf.c;h=5b9a262894fce38151e4fa417cfaa0c6aa49f9b1;hb=a02855c477926f5d726653e756d79a916a8faa1b;hp=e033e93d5437b902d1c8146f0fce50b53b4b0289;hpb=18a26d55cce0b899106edb796bad0df32de8259f;p=swftools.git diff --git a/src/png2swf.c b/src/png2swf.c index e033e93..5b9a262 100644 --- a/src/png2swf.c +++ b/src/png2swf.c @@ -355,6 +355,7 @@ void applyfilter4(int mode, U8*src, U8*old, U8*dest, int width) dest[1] = src[0]+(old[1]+lastr)/2; dest[2] = src[1]+(old[2]+lastg)/2; dest[3] = src[2]+(old[3]+lastb)/2; + lasta = dest[0]; lastr = dest[1]; lastg = dest[2]; lastb = dest[3]; @@ -538,6 +539,7 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id) int pos=0; int opaque=0; int transparent=0; + int semitransparent=0; /* in case for mode 2, the following also performs 24->32 bit conversion */ for(y=0;y