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

Function accumulate_rect

outdated/sys/mac/mactty.c:612–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610}
611
612static void
613accumulate_rect(tty_record *record, Rect *rect)
614{
615#if CLIP_RECT_ONLY
616 union_rect(rect, &(record->invalid_rect), &(record->invalid_rect));
617#else
618 RgnHandle rh = NewRgn();
619
620 RectRgn(rh, rect);
621 UnionRgn(record->invalid_part, rh, record->invalid_part);
622 DisposeRgn(rh);
623#endif
624}
625
626/*
627 * get and set window invalid region. exposed for HandleUpdateEvent in

Callers 8

set_invalid_regionFunction · 0.85
curs_posFunction · 0.85
do_add_stringFunction · 0.85
clear_ttyFunction · 0.85
clear_tty_windowFunction · 0.85
frame_tty_windowFunction · 0.85
invert_tty_windowFunction · 0.85
draw_tty_lineFunction · 0.85

Calls 1

union_rectFunction · 0.85

Tested by

no test coverage detected