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

Function condcolor

win/curses/cursstat.c:1362–1373  ·  view source on GitHub ↗

* Return what color this condition should * be displayed in based on user settings. */

Source from the content-addressed store, hash-verified

1360 * be displayed in based on user settings.
1361 */
1362static int
1363condcolor(long bm, unsigned long *bmarray)
1364{
1365 int i;
1366
1367 if (bm && bmarray)
1368 for (i = 0; i < CLR_MAX; ++i) {
1369 if ((bmarray[i] & bm) != 0)
1370 return i;
1371 }
1372 return NO_COLOR;
1373}
1374
1375static int
1376condattr(long bm, unsigned long *bmarray)

Callers 1

curs_stat_condsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected