Simplify set_clipping_rect and inline it into its only caller