NHDT->ANH, nethack->anethack, nhdat->anhdat
[aNetHack.git] / win / gem / gr_rect.h
blob7c146e8af05faf3a4be74bf3d6d99f560ad4aa33
1 /* gr_rect.h */
2 /*
3 * $ANH-Date: 1432512809 2015/05/25 00:13:29 $ $ANH-Branch: master $:$ANH-Revision: 1.4 $
4 */
5 #include <e_gem.h>
6 /********** structs **********/
7 typedef struct {
8 GRECT *rects;
9 int max, used;
10 } dirty_rect;
11 /********* functions ************/
12 dirty_rect *new_dirty_rect(int size);
13 void delete_dirty_rect(dirty_rect *this);
14 int add_dirty_rect(dirty_rect *dr, GRECT *area);
15 int get_dirty_rect(dirty_rect *dr, GRECT *area);
16 int clear_dirty_rect(dirty_rect *dr);
17 int resize_dirty_rect(dirty_rect *dr, int new_size);