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

Function mar_clear_map

outdated/win/gem/wingem1.c:2518–2535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2516/************************* mar_clear_map *******************************/
2517
2518void
2519mar_clear_map()
2520{
2521 int pla[8];
2522 int x, y;
2523
2524 pla[0] = pla[1] = pla[4] = pla[5] = 0;
2525 pla[2] = pla[6] = scroll_map.px_hline * (COLNO - 1) - 1;
2526 pla[3] = pla[7] = scroll_map.px_vline * ROWNO - 1;
2527 for (y = 0; y < ROWNO; y++)
2528 for (x = 0; x < COLNO - 1; x++)
2529 map_glyphs[y][x] = ' ';
2530 vro_cpyfm(x_handle, ALL_BLACK, pla, &Tile_bilder,
2531 &Map_bild); /* MAR -- 17.Mar 2002 Hmm, what if FontCol_Bild is
2532 bigger? */
2533 if (WIN_MAP != WIN_ERR && Gem_nhwindow[WIN_MAP].gw_window)
2534 redraw_window(Gem_nhwindow[WIN_MAP].gw_window, NULL);
2535}
2536
2537/************************* destroy_window *******************************/
2538

Callers 3

Gem_clear_nhwindowFunction · 0.85
mar_display_nhwindowFunction · 0.85
mar_create_windowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected