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

Function X11_preference_update

win/X11/winX.c:2478–2487  ·  view source on GitHub ↗

used when processing window-capability-specific run-time options; we support toggling tiles on and off via iflags.wc_tiled_map */

Source from the content-addressed store, hash-verified

2476/* used when processing window-capability-specific run-time options;
2477 we support toggling tiles on and off via iflags.wc_tiled_map */
2478void
2479X11_preference_update(const char *pref)
2480{
2481 if (!strcmp(pref, "tiled_map")) {
2482 if (WIN_MAP != WIN_ERR)
2483 display_map_window(&window_list[WIN_MAP]);
2484 } else if (!strcmp(pref, "perm_invent")) {
2485 ; /* TODO... */
2486 }
2487}
2488
2489/* End global functions =================================================== */
2490

Callers

nothing calls this directly

Calls 1

display_map_windowFunction · 0.85

Tested by

no test coverage detected