Copied the same "draw only visible" logic to lines

This fixes a "phantom lines" bug -- when all lines were printed
for every draw, some of the Int x/y vales were overflowing.