Handle non-integral device pixel ratios.