From: kramm Date: Sun, 21 Jan 2007 18:59:04 +0000 (+0000) Subject: fixed gfxmatrix_multiply X-Git-Tag: release-0-8-0~23 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=2b39e1bd64223659303afb113da273eb8499db6e fixed gfxmatrix_multiply --- 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; }