| 208 | } |
| 209 | |
| 210 | struct selectionvar * |
| 211 | selection_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 | |
| 223 | struct selectionvar * |
| 224 | selection_filter_percent( |
no test coverage detected