From: kramm Date: Mon, 16 Jan 2006 17:01:59 +0000 (+0000) Subject: fixed matrix multiplication order for bitmaps X-Git-Tag: release-0-8-0~253 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=09dcad8fdd10d7f4ca0be5d26e264c4f90bf3896;p=swftools.git fixed matrix multiplication order for bitmaps --- 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; }