X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxtools.c;h=b6d826f7cc1331e1b6e6789a96d312d00a6ce82a;hb=add03ee7161255cb8ff1da5dcd9fddd7d93b3026;hp=86970a2776f6d4743cb94cbad77d304418207743;hpb=b297c77630e356035a75d9c4297ba1d6ed424b16;p=swftools.git diff --git a/lib/gfxtools.c b/lib/gfxtools.c index 86970a2..b6d826f 100644 --- a/lib/gfxtools.c +++ b/lib/gfxtools.c @@ -713,10 +713,10 @@ void gfxmatrix_unit(gfxmatrix_t*m) } void gfxmatrix_multiply(gfxmatrix_t*m1, gfxmatrix_t*m2, gfxmatrix_t*dest) { - dest->m00 = m1->m00*m2->m00 + m1->m10*m2->m01 + m1->tx; - dest->m01 = m1->m01*m2->m00 + m1->m11*m2->m01 + m1->ty; - dest->m10 = m1->m00*m2->m10 + m1->m10*m2->m11 + m1->tx; - dest->m11 = m1->m01*m2->m10 + m1->m11*m2->m11 + m1->ty; + dest->m00 = m1->m00*m2->m00 + m1->m10*m2->m01; + dest->m01 = m1->m01*m2->m00 + m1->m11*m2->m01; + dest->m10 = m1->m00*m2->m10 + m1->m10*m2->m11; + dest->m11 = m1->m01*m2->m10 + m1->m11*m2->m11; dest->tx = m1->m00*m2->tx + m1->m10*m2->ty + m1->tx; dest->ty = m1->m01*m2->tx + m1->m11*m2->ty + m1->ty; }