fix half-bresenham algorithm for drawing line