| 165 | } |
| 166 | |
| 167 | coordxy |
| 168 | selection_getpoint( |
| 169 | coordxy x, coordxy y, |
| 170 | struct selectionvar *sel) |
| 171 | { |
| 172 | if (!sel || !sel->map) |
| 173 | return 0; |
| 174 | if (x < 0 || y < 0 || x >= sel->wid || y >= sel->hei) |
| 175 | return 0; |
| 176 | |
| 177 | return (sel->map[sel->wid * y + x] - 1); |
| 178 | } |
| 179 | |
| 180 | void |
| 181 | selection_setpoint( |
no outgoing calls
no test coverage detected