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

Function union_rect

outdated/sys/mac/mactty.c:85–92  ·  view source on GitHub ↗

* Union twp rect together */

Source from the content-addressed store, hash-verified

83 * Union twp rect together
84 */
85static void
86union_rect(Rect *r1, Rect *r2, Rect *dest)
87{
88 dest->left = min(r1->left, r2->left);
89 dest->top = min(r1->top, r2->top);
90 dest->bottom = max(r1->bottom, r2->bottom);
91 dest->right = max(r1->right, r2->right);
92}
93
94/*
95 * Dispose a pointer using the set memory-allocator

Callers 1

accumulate_rectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected