Thermodynamics of confined colloid-polymer mixtures