| 79 | */ |
| 80 | |
| 81 | NhRect * |
| 82 | get_rect(NhRect *r) |
| 83 | { |
| 84 | NhRect *rectp; |
| 85 | int lx, ly, hx, hy; |
| 86 | int i; |
| 87 | |
| 88 | lx = r->lx; |
| 89 | ly = r->ly; |
| 90 | hx = r->hx; |
| 91 | hy = r->hy; |
| 92 | for (i = 0, rectp = &rect[0]; i < rect_cnt; i++, rectp++) |
| 93 | if (lx >= rectp->lx && ly >= rectp->ly && hx <= rectp->hx |
| 94 | && hy <= rectp->hy) |
| 95 | return rectp; |
| 96 | return 0; |
| 97 | } |
| 98 | |
| 99 | /* |
| 100 | * Get some random NhRect from the list. |
no outgoing calls
no test coverage detected