Simple and naive fix to make rendering more stable when drawing lines.