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

Function gc_inside

outdated/win/gem/gr_rect.c:166–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 return (FALSE);
165}
166static int
167gc_inside(GRECT *frame, GRECT *test)
168{
169 if (frame && test && frame->g_x <= test->g_x && frame->g_y <= test->g_y
170 && frame->g_x + frame->g_w >= test->g_x + test->g_w
171 && frame->g_y + frame->g_h >= test->g_y + test->g_h)
172 return (TRUE);
173 return (FALSE);
174}
175static int
176gc_touch(GRECT *frame, GRECT *test)
177{

Callers 1

add_dirty_rectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected