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

Function image_tty

outdated/sys/mac/mactty.c:1076–1094  ·  view source on GitHub ↗

* Draw an image of the tty - used for update events and can be called * for screen dumps. */

Source from the content-addressed store, hash-verified

1074 * for screen dumps.
1075 */
1076short
1077image_tty(EventRecord *theEvent, WindowPtr window)
1078{
1079#if defined(__SC__) || defined(__MRC__)
1080#pragma unused(theEvent)
1081#endif
1082 RECORD_EXISTS(record);
1083
1084#if CLIP_RECT_ONLY
1085 record->invalid_rect = record->its_bits.bounds;
1086#else
1087 RgnHandle rh = NewRgn();
1088
1089 RectRgn(rh, record->its_bits.bounds);
1090 UnionRgn(record->invalid_part, rh, record->invalid_part);
1091 DisposeRgn(rh);
1092#endif
1093 return update_tty(window);
1094}
1095
1096/*
1097 * Clear an area

Callers 2

BaseEventFunction · 0.85
HandleUpdateFunction · 0.85

Calls 1

update_ttyFunction · 0.85

Tested by

no test coverage detected