Put the rectangle containing both r1 and r2 into r3 */
| 131 | |
| 132 | /* Put the rectangle containing both r1 and r2 into r3 */ |
| 133 | void |
| 134 | rect_bounds(NhRect r1, NhRect r2, NhRect *r3) |
| 135 | { |
| 136 | r3->lx = min(r1.lx, r2.lx); |
| 137 | r3->ly = min(r1.ly, r2.ly); |
| 138 | r3->hx = max(r1.hx, r2.hx); |
| 139 | r3->hy = max(r1.hy, r2.hy); |
| 140 | } |
| 141 | |
| 142 | /* |
| 143 | * Remove a rectangle from the list of free NhRect. |
no outgoing calls
no test coverage detected