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

Function get_dirty_rect

outdated/win/gem/gr_rect.c:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 return (TRUE);
144}
145int
146get_dirty_rect(dirty_rect *dr, GRECT *area)
147{
148 if (dr == NULL || area == NULL || dr->rects == NULL || dr->used <= 0
149 || dr->max <= 0)
150 return (FALSE);
151 *area = dr->rects[--dr->used];
152 return (TRUE);
153}
154int
155clear_dirty_rect(dirty_rect *dr)
156{

Callers 1

mar_display_nhwindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected