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

Function X11_status_update

win/X11/winstat.c:937–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

935}
936
937void
938X11_status_update(
939 int fld,
940 genericptr_t ptr,
941 int chg, int percent,
942 int color,
943 unsigned long *colormasks)
944{
945 if (fld < BL_RESET || fld >= MAXBLSTATS)
946 panic("X11_status_update(%d) -- invalid field", fld);
947
948 if (appResources.fancy_status)
949 X11_status_update_fancy(fld, ptr, chg, percent, color, colormasks);
950 else
951 X11_status_update_tty(fld, ptr, chg, percent, color, colormasks);
952}
953
954/* create a widget for a particular status field or potential condition */
955static Widget

Callers

nothing calls this directly

Calls 3

X11_status_update_fancyFunction · 0.85
X11_status_update_ttyFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected