Use density instead of ydpi, some devices report differing values.