Revert "Use a register map instead of a switch statement"

This reverts commit 654c0cb10b6a0ea43f1e974be94b71cea97c6a31.
Refetch the display mode in every line