From 09dcad8fdd10d7f4ca0be5d26e264c4f90bf3896 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 16 Jan 2006 17:01:59 +0000 Subject: [PATCH] fixed matrix multiplication order for bitmaps --- lib/modules/swfrender.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/swfrender.c b/lib/modules/swfrender.c index b090cdd..8be9cef 100644 --- a/lib/modules/swfrender.c +++ b/lib/modules/swfrender.c @@ -433,7 +433,7 @@ void swf_RenderShape(RENDERBUF*dest, SHAPE2*shape, MATRIX*m, CXFORM*c, U16 _dept important for texture and gradient fill */ for(t=0;tnumfillstyles;t++) { MATRIX nm; - swf_MatrixJoin(&nm, &s2->fillstyles[t].m, &mat); //TODO: is this the right order? + swf_MatrixJoin(&nm, &mat, &s2->fillstyles[t].m); /*nm.sx *= i->multiply; nm.sy *= i->multiply; nm.r0 *= i->multiply; @@ -1127,7 +1127,7 @@ void swf_RenderSWF(RENDERBUF*buf, SWF*swf) swf_GetPlaceObject(tag, &p); /* TODO: add move and deletion */ placements[numplacements++] = p; - swf_PlaceObjectFree(&p); //dirty! but it only removes items we don't need + swf_PlaceObjectFree(&p); //dirty! but it only frees fields we don't use } tag = tag->next; } -- 1.7.10.4