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

Function condcolor

win/X11/winstat.c:202–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200struct xwindow *xw_status_win;
201
202static int
203condcolor(long bm, unsigned long *bmarray)
204{
205 int i;
206
207 if (bm && bmarray)
208 for (i = 0; i < CLR_MAX; ++i) {
209 if (bmarray[i] && (bm & bmarray[i]))
210 return i;
211 }
212 return NO_COLOR;
213}
214
215static int
216condattr(long bm, unsigned long *bmarray)

Callers 3

DisplayCondFunction · 0.70
tt_reset_colorFunction · 0.70
X11_status_update_fancyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected