MCPcopy Create free account
hub / github.com/NetHack/NetHack / tty_environment_changed

Function tty_environment_changed

outdated/sys/mac/mactty.c:549–565  ·  view source on GitHub ↗

* Update TTY according to new color environment for the window */

Source from the content-addressed store, hash-verified

547 * Update TTY according to new color environment for the window
548 */
549static short
550tty_environment_changed (tty_record *record) {
551Point p = {0, 0};
552Rect 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/*

Callers

nothing calls this directly

Calls 2

select_offscreen_portFunction · 0.85
select_onscreen_windowFunction · 0.85

Tested by

no test coverage detected