pixel snapping
This commit is contained in:
parent
550077d6d2
commit
d29cc74927
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue