* Draw an image of the tty - used for update events and can be called * for screen dumps. */
| 1074 | * for screen dumps. |
| 1075 | */ |
| 1076 | short |
| 1077 | image_tty(EventRecord *theEvent, WindowPtr window) |
| 1078 | { |
| 1079 | #if defined(__SC__) || defined(__MRC__) |
| 1080 | #pragma unused(theEvent) |
| 1081 | #endif |
| 1082 | RECORD_EXISTS(record); |
| 1083 | |
| 1084 | #if CLIP_RECT_ONLY |
| 1085 | record->invalid_rect = record->its_bits.bounds; |
| 1086 | #else |
| 1087 | RgnHandle rh = NewRgn(); |
| 1088 | |
| 1089 | RectRgn(rh, record->its_bits.bounds); |
| 1090 | UnionRgn(record->invalid_part, rh, record->invalid_part); |
| 1091 | DisposeRgn(rh); |
| 1092 | #endif |
| 1093 | return update_tty(window); |
| 1094 | } |
| 1095 | |
| 1096 | /* |
| 1097 | * Clear an area |
no test coverage detected