Line drawing algorithm doesn't like 45 degree lines. Compensate with
additional end of line checks.