From 6176ea5b1f00365e6150b7c1d02e38371c94ea11 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 18 Mar 2007 18:26:47 +0000 Subject: [PATCH] fixed bug in cxform handling --- lib/swf/swf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 1.7.10.4