Updating the clip rectangle to avoid points clipping