From: kramm Date: Sun, 18 Mar 2007 18:26:47 +0000 (+0000) Subject: fixed bug in cxform handling X-Git-Tag: release-0-8-1~8 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=6176ea5b1f00365e6150b7c1d02e38371c94ea11 fixed bug in cxform handling --- diff --git a/lib/swf/swf.c b/lib/swf/swf.c index 267beee..ffabdcf 100644 --- a/lib/swf/swf.c +++ b/lib/swf/swf.c @@ -365,10 +365,10 @@ static void renderFilled(render_t*r, gfxline_t*line, FILLSTYLE*f, CXFORM*cx) RGBA swf_ColorTransform(RGBA*color, CXFORM*cx) { RGBA dest; - dest.r = (cx->r0*dest.r + cx->r1*256) >> 8; - dest.g = (cx->g0*dest.g + cx->g1*256) >> 8; - dest.b = (cx->b0*dest.b + cx->b1*256) >> 8; - dest.a = (cx->a0*dest.a + cx->a1*256) >> 8; + dest.r = (cx->r0*color->r + cx->r1*256) >> 8; + dest.g = (cx->g0*color->g + cx->g1*256) >> 8; + dest.b = (cx->b0*color->b + cx->b1*256) >> 8; + dest.a = (cx->a0*color->a + cx->a1*256) >> 8; return dest; }