mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Fixed typo wrt width and height (patch provided by Dainis Jonitis) b=107530 r=mkaply sr=attinasi
This commit is contained in:
parent
aca3d1b210
commit
23776ac1cc
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user