From: kramm Date: Sun, 22 Apr 2007 17:46:24 +0000 (+0000) Subject: preserve alpha X-Git-Tag: buttons-working~698 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=e927ee1da679828b43ff54b2989653606f38964f;p=swftools.git preserve alpha --- diff --git a/lib/devices/render.c b/lib/devices/render.c index 2449a2c..5a9504b 100644 --- a/lib/devices/render.c +++ b/lib/devices/render.c @@ -272,13 +272,13 @@ static void fill_line_solid(RGBA*line, U32*z, int y, int x1, int x2, RGBA col) col.r = (col.r*col.a)>>8; col.g = (col.g*col.a)>>8; col.b = (col.b*col.a)>>8; - col.a = 255; do { if(z[bitpos]&bit) { line[x].r = ((line[x].r*ainv)>>8)+col.r; line[x].g = ((line[x].g*ainv)>>8)+col.g; line[x].b = ((line[x].b*ainv)>>8)+col.b; - line[x].a = 255; + //line[x].a = 255; + line[x].a = ((line[x].a*ainv)>>8)+col.a; } bit <<= 1; if(!bit) {