handle scaling when quering for window's devicePixelRatio