MCPcopy Create free account
hub / github.com/NetHack/NetHack / menu_clear_selections

Function menu_clear_selections

win/curses/cursdial.c:1766–1775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1764/* Set all menu items to unselected in menu */
1765
1766static void
1767menu_clear_selections(nhmenu *menu)
1768{
1769 nhmenu_item *menu_item_ptr = menu->entries;
1770
1771 while (menu_item_ptr != NULL) {
1772 menu_item_ptr->selected = FALSE;
1773 menu_item_ptr = menu_item_ptr->next_item;
1774 }
1775}
1776
1777
1778/* Get the maximum height for a menu */

Callers 2

menu_get_selectionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected