Drawing a dashed line on graphics screen from x1 y1 to x2 y2