From e927ee1da679828b43ff54b2989653606f38964f Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 22 Apr 2007 17:46:24 +0000 Subject: [PATCH] preserve alpha --- lib/devices/render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 1.7.10.4