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

Function X11_start_menu

win/X11/winmenu.c:773–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773void
774X11_start_menu(winid window, unsigned long mbehavior UNUSED)
775{
776 struct xwindow *wp;
777 check_winid(window);
778
779 wp = &window_list[window];
780
781 if (wp->menu_information->is_menu) {
782 /* make sure we're starting with a clean slate */
783 free_menu(&wp->menu_information->new_menu);
784 } else {
785 wp->menu_information->is_menu = TRUE;
786 }
787}
788
789/*ARGSUSED*/
790void

Callers 2

X11_display_fileFunction · 0.85
X11_select_menuFunction · 0.85

Calls 1

free_menuFunction · 0.85

Tested by

no test coverage detected