* Union twp rect together */
| 83 | * Union twp rect together |
| 84 | */ |
| 85 | static void |
| 86 | union_rect(Rect *r1, Rect *r2, Rect *dest) |
| 87 | { |
| 88 | dest->left = min(r1->left, r2->left); |
| 89 | dest->top = min(r1->top, r2->top); |
| 90 | dest->bottom = max(r1->bottom, r2->bottom); |
| 91 | dest->right = max(r1->right, r2->right); |
| 92 | } |
| 93 | |
| 94 | /* |
| 95 | * Dispose a pointer using the set memory-allocator |