X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fpng2swf.c;h=5b9a262894fce38151e4fa417cfaa0c6aa49f9b1;hp=e033e93d5437b902d1c8146f0fce50b53b4b0289;hb=88f0dff63924cecbca1ad201958108d88e06141c;hpb=7ff96ee357d1ad8fddc146f082e2b886105cbc79 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