Bresenham + 0.5 fix in oob computation