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

Function destroy_status_window_fancy

win/X11/winstat.c:1238–1255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1236}
1237
1238void
1239destroy_status_window_fancy(struct xwindow *wp)
1240{
1241 /* If status_information is defined, then it a "text" status window. */
1242 if (wp->status_information) {
1243 if (wp->popup) {
1244 nh_XtPopdown(wp->popup);
1245 if (!wp->keep_window)
1246 XtDestroyWidget(wp->popup), wp->popup = (Widget) 0;
1247 }
1248 free((genericptr_t) wp->status_information);
1249 wp->status_information = 0;
1250 } else {
1251 destroy_fancy_status(wp);
1252 }
1253 if (!wp->keep_window)
1254 wp->type = NHW_NONE;
1255}
1256
1257/*
1258 * This assumes several things:

Callers 1

destroy_status_windowFunction · 0.85

Calls 2

nh_XtPopdownFunction · 0.85
destroy_fancy_statusFunction · 0.85

Tested by

no test coverage detected