lwinput: Distinguish linesize and rowsize.