#723: fix line clipping so it doesn't affect which pixels are plotted according to the style bits.
Redo clipping code in integer math.  As a bonus it also removes rounding errors.
Now, clipping should have absolutely no effect on the unclipped pixels drawn.