Polish the criterion to detect HiDPI.