Calculates the DPI of a display. Work in progress