Improve high device pixel ratio detecting