* Clear an area */
| 1097 | * Clear an area |
| 1098 | */ |
| 1099 | short |
| 1100 | clear_tty_window(WindowPtr window, short from_x, short from_y, short to_x, |
| 1101 | short to_y) |
| 1102 | { |
| 1103 | Rect r; |
| 1104 | RECORD_EXISTS(record); |
| 1105 | |
| 1106 | if (from_x > to_x || from_y > to_y) { |
| 1107 | return general_failure; |
| 1108 | } |
| 1109 | pos_rect(record, &r, from_x, from_y, to_x, to_y); |
| 1110 | select_offscreen_port(record); |
| 1111 | erase_rect(record, &r); |
| 1112 | accumulate_rect(record, &r); |
| 1113 | if (DRAW_DIRECT) { |
| 1114 | update_tty(window); |
| 1115 | } else |
| 1116 | select_onscreen_window(record); |
| 1117 | return noErr; |
| 1118 | } |
| 1119 | |
| 1120 | #if EXTENDED_SUPPORT |
| 1121 | /* |
no test coverage detected