Abstracted display settings code.