| 610 | } |
| 611 | |
| 612 | static void |
| 613 | accumulate_rect(tty_record *record, Rect *rect) |
| 614 | { |
| 615 | #if CLIP_RECT_ONLY |
| 616 | union_rect(rect, &(record->invalid_rect), &(record->invalid_rect)); |
| 617 | #else |
| 618 | RgnHandle rh = NewRgn(); |
| 619 | |
| 620 | RectRgn(rh, rect); |
| 621 | UnionRgn(record->invalid_part, rh, record->invalid_part); |
| 622 | DisposeRgn(rh); |
| 623 | #endif |
| 624 | } |
| 625 | |
| 626 | /* |
| 627 | * get and set window invalid region. exposed for HandleUpdateEvent in |
no test coverage detected