Improved the detection of different scaled display densities