git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2165807
)
alpha conversion fix.
author
kramm
<kramm>
Thu, 8 May 2003 14:09:58 +0000
(14:09 +0000)
committer
kramm
<kramm>
Thu, 8 May 2003 14:09:58 +0000
(14:09 +0000)
src/png2swf.c
patch
|
blob
|
history
diff --git
a/src/png2swf.c
b/src/png2swf.c
index
2e526d7
..
d3247d8
100644
(file)
--- 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;
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;
swf_SetRGB(t, &rgb);
return t;
@@
-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];
lastr = dest[1];
lastg = dest[2];
lastb = dest[3];
- upperlastr = old[0];
+ upperlasta = old[0];
upperlastr = old[1];
upperlastg = old[2];
upperlastb = old[3];
upperlastr = old[1];
upperlastg = old[2];
upperlastb = old[3];