* Invert the specified position */
| 660 | * Invert the specified position |
| 661 | */ |
| 662 | static void |
| 663 | curs_pos(tty_record *record, short x_pos, short y_pos, short to_state) |
| 664 | { |
| 665 | Rect r; |
| 666 | |
| 667 | if (record->curs_state == to_state) { |
| 668 | return; |
| 669 | } |
| 670 | record->curs_state = to_state; |
| 671 | pos_rect(record, &r, x_pos, y_pos, x_pos, y_pos); |
| 672 | |
| 673 | if (DRAW_DIRECT) { |
| 674 | void *old_port; |
| 675 | |
| 676 | save_port(record, &old_port); |
| 677 | select_onscreen_window(record); |
| 678 | InvertRect(&r); |
| 679 | use_port(record, old_port); |
| 680 | } else { |
| 681 | accumulate_rect(record, &r); |
| 682 | } |
| 683 | } |
| 684 | |
| 685 | /* |
| 686 | * Move the cursor (both as displayed and where drawing goes) |
no test coverage detected