Floor, not round

This commit is contained in:
Richard Davey 2024-07-16 23:17:40 +01:00
parent 40224d7c25
commit 2fc8f5b3f9
No known key found for this signature in database

View file

@ -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
{