mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Floor, not round
This commit is contained in:
parent
40224d7c25
commit
2fc8f5b3f9
1 changed files with 8 additions and 8 deletions
|
@ -938,17 +938,17 @@ var TransformMatrix = new Class({
|
|||
|
||||
if (roundPixels)
|
||||
{
|
||||
quad[0] = Math.round(x * a + y * c + e);
|
||||
quad[1] = Math.round(x * b + y * d + f);
|
||||
quad[0] = Math.floor(x * a + y * c + e);
|
||||
quad[1] = Math.floor(x * b + y * d + f);
|
||||
|
||||
quad[2] = Math.round(x * a + yh * c + e);
|
||||
quad[3] = Math.round(x * b + yh * d + f);
|
||||
quad[2] = Math.floor(x * a + yh * c + e);
|
||||
quad[3] = Math.floor(x * b + yh * d + f);
|
||||
|
||||
quad[4] = Math.round(xw * a + yh * c + e);
|
||||
quad[5] = Math.round(xw * b + yh * d + f);
|
||||
quad[4] = Math.floor(xw * a + yh * c + e);
|
||||
quad[5] = Math.floor(xw * b + yh * d + f);
|
||||
|
||||
quad[6] = Math.round(xw * a + y * c + e);
|
||||
quad[7] = Math.round(xw * b + y * d + f);
|
||||
quad[6] = Math.floor(xw * a + y * c + e);
|
||||
quad[7] = Math.floor(xw * b + y * d + f);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue