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

Function draw_tty_line

outdated/sys/mac/mactty.c:1242–1258  ·  view source on GitHub ↗

* Line drawing - very device dependent */

Source from the content-addressed store, hash-verified

1240 * Line drawing - very device dependent
1241 */
1242short
1243draw_tty_line(WindowPtr window, short from_x, short from_y, short to_x,
1244 short to_y)
1245{
1246 Rect r;
1247 RECORD_EXISTS(record);
1248
1249 select_offscreen_port(record);
1250 MoveTo(from_x, from_y);
1251 LineTo(to_x, to_y);
1252 canonical_rect(&r, from_x, from_y, to_x, to_y);
1253 accumulate_rect(record, &r);
1254 if (DRAW_DIRECT) {
1255 update_tty(window);
1256 } else
1257 select_onscreen_window(record);
1258}
1259
1260#endif /* EXTENDED_SUPPORT */

Callers

nothing calls this directly

Calls 5

select_offscreen_portFunction · 0.85
canonical_rectFunction · 0.85
accumulate_rectFunction · 0.85
update_ttyFunction · 0.85
select_onscreen_windowFunction · 0.85

Tested by

no test coverage detected