Vertical and horizontal lines work correctly when x2/y2 value is less than x1/y1.