If the surface is inclined by some amount θ, the entire diagram would be rotated by θ, but the force of gravity would remain pointing downwards (forming an angle θ with the surface). Gravity would then have a component parallel to the surface, which would contribute to friction, and thus contribute to rotation.