[SystemInfo] Fix DPI calculation when we can get the real resolution and physical length. Fix #173 and #184 bugs at the same time.