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

Function ghack_map_clear

outdated/win/gnome/gnmap.c:382–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380*/
381
382void
383ghack_map_clear(GtkWidget *win, gpointer data)
384{
385 int i;
386
387 for (i = 0; i < ROWNO * COLNO; i++) {
388 if (GNOME_IS_CANVAS_IMAGE(ghack_map.map[i])) {
389 gnome_canvas_item_hide(GNOME_CANVAS_ITEM(ghack_map.map[i]));
390 }
391 if (GNOME_IS_CANVAS_IMAGE(ghack_map.overlay[i])) {
392 gnome_canvas_item_hide(GNOME_CANVAS_ITEM(ghack_map.overlay[i]));
393 }
394 }
395 gnome_canvas_update_now(GNOME_CANVAS(ghack_map.canvas));
396}
397
398void
399ghack_map_display(GtkWidget *win, boolean block, gpointer data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected