* Low level add to screen */
| 748 | * Low level add to screen |
| 749 | */ |
| 750 | static void |
| 751 | do_add_string(tty_record *record, char *str, short len) |
| 752 | { |
| 753 | Rect r; |
| 754 | |
| 755 | if (len < 1) { |
| 756 | return; |
| 757 | } |
| 758 | select_offscreen_port(record); |
| 759 | |
| 760 | MoveTo(record->x_curs * record->char_width, |
| 761 | record->y_curs * record->row_height + record->ascent_height); |
| 762 | DrawText(str, 0, len); |
| 763 | |
| 764 | pos_rect(record, &r, record->x_curs, record->y_curs, |
| 765 | record->x_curs + len - 1, record->y_curs); |
| 766 | select_onscreen_window(record); |
| 767 | if (DRAW_DIRECT) { |
| 768 | copy_bits(record, &r, srcCopy, (RgnHandle) 0); |
| 769 | } else { |
| 770 | accumulate_rect(record, &r); |
| 771 | } |
| 772 | } |
| 773 | |
| 774 | /* |
| 775 | * Low-level cursor handling routine |
no test coverage detected