Issue a developer warning if the display mode is not a known value.

Fixes issue 283.