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

Function skip_cond_val

win/X11/winstat.c:1746–1762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1744}
1745
1746RESTORE_WARNING_FORMAT_NONLITERAL
1747
1748/* overloaded condition is being cleared without going through update_val()
1749 so that an alternate can be shown; put this one back to default settings */
1750static void
1751skip_cond_val(struct X_status_value *sv)
1752{
1753 sv->last_value = 0L; /* Off */
1754 if (sv->set) {
1755 /* if condition was highlighted and the alternate value has
1756 also requested to be highlighted, it used its own copy of
1757 'set' but the same widget so the highlighting got toggled
1758 off; this will turn in back on in that exceptional case */
1759 hilight_label(sv->w);
1760 sv->set = FALSE;
1761 }
1762}
1763
1764static void
1765update_color(struct X_status_value *sv, int color)

Callers 1

Calls 1

hilight_labelFunction · 0.85

Tested by

no test coverage detected