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

Function clear_map_window

win/X11/winmap.c:1087–1103  ·  view source on GitHub ↗

* Fill the saved screen characters with the "clear" tile or character. * * Flush out everything by resetting the "new" bounds and calling * display_map_window(). */

Source from the content-addressed store, hash-verified

1085 * display_map_window().
1086 */
1087void
1088clear_map_window(struct xwindow *wp)
1089{
1090 struct map_info_t *map_info = wp->map_information;
1091 int i;
1092
1093 /* update both tile and text backing store, then update */
1094 map_all_unexplored(map_info);
1095
1096 /* force a full update */
1097 for (i = 0; i < ROWNO; i++) {
1098 map_info->t_start[i] = 0;
1099 map_info->t_stop[i] = COLNO-1;
1100 }
1101
1102 display_map_window(wp);
1103}
1104
1105/*
1106 * Retrieve the font associated with the map window and save attributes

Callers 1

X11_clear_nhwindowFunction · 0.85

Calls 2

map_all_unexploredFunction · 0.85
display_map_windowFunction · 0.85

Tested by

no test coverage detected