Painting across multiple lines was wrong in some cases (start/end near the line wrap)