fix drawlineDDA when startPoint == endPoint