From d29cc749276b4365f988829e256660debf330025 Mon Sep 17 00:00:00 2001 From: Jeremy Penner Date: Fri, 1 Apr 2011 17:31:21 -0700 Subject: [PATCH] pixel snapping --- src/WorldStage.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WorldStage.as b/src/WorldStage.as index a875d14..8b3fd0c 100644 --- a/src/WorldStage.as +++ b/src/WorldStage.as @@ -122,7 +122,7 @@ package } public function PointScreenFromReal(pointReal: Point) : Point { - return new Point((pointReal.x - pointView.x) * zoom, (pointReal.y - pointView.y) * zoom); + return new Point((int(pointReal.x) - pointView.x) * zoom, (int(pointReal.y) - pointView.y) * zoom); } // path management helpers