Make dpi adjustments when necessary