Skip to content

Commit 9b5b440

Browse files
authored
No pixel perfect position
1 parent 0022046 commit 9b5b440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

h2d/Camera.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ class Camera {
224224
matC = scaleY * -sr;
225225
matD = scaleY * cr;
226226
}
227-
absX = Math.round(-(x * matA + y * matC) + (scene.width * anchorX * viewW) + scene.width * viewX);
228-
absY = Math.round(-(x * matB + y * matD) + (scene.height * anchorY * viewH) + scene.height * viewY);
227+
absX = -(x * matA + y * matC) + (scene.width * anchorX * viewW) + scene.width * viewX;
228+
absY = -(x * matB + y * matD) + (scene.height * anchorY * viewH) + scene.height * viewY;
229229
invDet = 1 / (matA * matD - matB * matC);
230230
posChanged = false;
231231
}

0 commit comments

Comments
 (0)