Use correct start/end point when drawing rounded rectangles.