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

Function selection_not

src/selvar.c:210–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210struct selectionvar *
211selection_not(struct selectionvar *s)
212{
213 int x, y;
214 NhRect tmprect = cg.zeroNhRect;
215
216 for (x = 0; x < s->wid; x++)
217 for (y = 0; y < s->hei; y++)
218 selection_setpoint(x, y, s, selection_getpoint(x, y, s) ? 0 : 1);
219 selection_getbounds(s, &tmprect);
220 return s;
221}
222
223struct selectionvar *
224selection_filter_percent(

Callers 1

l_selection_notFunction · 0.85

Calls 3

selection_setpointFunction · 0.85
selection_getpointFunction · 0.85
selection_getboundsFunction · 0.85

Tested by

no test coverage detected