insert a non-selectable, possibly highlighted line of text into a menu */
| 1813 | |
| 1814 | /* insert a non-selectable, possibly highlighted line of text into a menu */ |
| 1815 | void |
| 1816 | add_menu_heading(winid tmpwin, const char *buf) |
| 1817 | { |
| 1818 | anything any = cg.zeroany; |
| 1819 | int attr = iflags.menu_headings.attr, |
| 1820 | color = iflags.menu_headings.color; |
| 1821 | |
| 1822 | /* suppress highlighting during end-of-game disclosure */ |
| 1823 | if (program_state.gameover) |
| 1824 | attr = ATR_NONE, color = NO_COLOR; |
| 1825 | |
| 1826 | add_menu(tmpwin, &nul_glyphinfo, &any, '\0', '\0', attr, color, |
| 1827 | buf, MENU_ITEMFLAGS_SKIPMENUCOLORS); |
| 1828 | } |
| 1829 | |
| 1830 | /* insert a non-selectable, unhighlighted line of text into a menu */ |
| 1831 | void |
no test coverage detected