Merge modes.c into display.c.