Remove logically dead code.

Fixes CID #965942 #1109592.
Improve the Get(Cur)DispMode and SetDispMode functions.

Fixes CID #966222.
Options dialog: Disable "Reset" when the INI is read-only.

Ref #3591.