* Update TTY according to new color environment for the window */
| 547 | * Update TTY according to new color environment for the window |
| 548 | */ |
| 549 | static short |
| 550 | tty_environment_changed (tty_record *record) { |
| 551 | Point p = {0, 0}; |
| 552 | Rect r_screen; |
| 553 | |
| 554 | if (record->uses_gworld) { |
| 555 | r_screen = record->its_bits.bounds; |
| 556 | LocalToGlobal (&p); |
| 557 | OffsetRect (&r_screen, p.h, p.v); |
| 558 | UpdateGWorld (&(record->offscreen_world), 0, &r_screen, |
| 559 | (CTabHandle) 0, (GDHandle) 0, stretchPix); |
| 560 | select_offscreen_port (record); |
| 561 | SetOrigin (0, 0); |
| 562 | select_onscreen_window (record); |
| 563 | } |
| 564 | return 0; |
| 565 | } |
| 566 | #endif |
| 567 | |
| 568 | /* |
nothing calls this directly
no test coverage detected