Fixed typo wrt width and height (patch provided by Dainis Jonitis) b=107530 r=mkaply sr=attinasi

This commit is contained in:
attinasi%netscape.com 2001-11-06 01:28:27 +00:00
parent aca3d1b210
commit 23776ac1cc

View File

@ -486,7 +486,7 @@ void nsTransform2D :: Transform(float *aX, float *aY, float *aWidth, float *aHei
x = *aWidth; x = *aWidth;
y = *aHeight; y = *aHeight;
*aHeight = x * m00 + y * m10; *aWidth = x * m00 + y * m10;
*aHeight = x * m01 + y * m11; *aHeight = x * m01 + y * m11;
break; break;
@ -548,7 +548,7 @@ void nsTransform2D :: TransformCoord(nscoord *aX, nscoord *aY, nscoord *aWidth,
x = (float)*aWidth; x = (float)*aWidth;
y = (float)*aHeight; y = (float)*aHeight;
*aHeight = NSToCoordRound(x * m00 + y * m10); *aWidth = NSToCoordRound(x * m00 + y * m10);
*aHeight = NSToCoordRound(x * m01 + y * m11); *aHeight = NSToCoordRound(x * m01 + y * m11);
break; break;