Only update the rect being painted.