Line tool draws correctly for steep and shallow lines.