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

Function X11_clear_nhwindow

win/X11/winX.c:1135–1159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1133}
1134
1135void
1136X11_clear_nhwindow(winid window)
1137{
1138 struct xwindow *wp;
1139
1140 check_winid(window);
1141 wp = &window_list[window];
1142
1143 switch (wp->type) {
1144 case NHW_MAP:
1145 clear_map_window(wp);
1146 break;
1147 case NHW_TEXT:
1148 clear_text_window(wp);
1149 break;
1150 case NHW_STATUS:
1151 case NHW_MENU:
1152 case NHW_MESSAGE:
1153 /* do nothing for these window types */
1154 break;
1155 default:
1156 panic("clear_nhwindow: unknown window type [%d]", wp->type);
1157 break;
1158 }
1159}
1160
1161void
1162X11_display_nhwindow(winid window, boolean blocking)

Callers

nothing calls this directly

Calls 3

clear_map_windowFunction · 0.85
clear_text_windowFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected