pixel snapping

This commit is contained in:
Jeremy Penner 2011-04-01 17:31:21 -07:00
parent 550077d6d2
commit d29cc74927

View file

@ -122,7 +122,7 @@ package
} }
public function PointScreenFromReal(pointReal: Point) : Point 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 // path management helpers