Assign line width explicitly to prevent full screen repaints

Fixes #2746