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

Function destroy_status_window_tty

win/X11/winstat.c:1060–1077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058}
1059
1060void
1061destroy_status_window_tty(struct xwindow *wp)
1062{
1063 /* if status_information is defined, then it is a "text" status window */
1064 if (wp->status_information) {
1065 if (wp->popup) {
1066 nh_XtPopdown(wp->popup);
1067 if (!wp->keep_window)
1068 XtDestroyWidget(wp->popup), wp->popup = (Widget) 0;
1069 }
1070 free((genericptr_t) wp->status_information);
1071 wp->status_information = 0;
1072 } else {
1073 ;
1074 }
1075 if (!wp->keep_window)
1076 wp->type = NHW_NONE;
1077}
1078
1079/*ARGSUSED*/
1080void

Callers 1

destroy_status_windowFunction · 0.85

Calls 1

nh_XtPopdownFunction · 0.85

Tested by

no test coverage detected