comparison src/redraw_man.c @ 235:65cabbdd5284

termporary revision
author Thinker K.F. Li <thinker@branda.to>
date Thu, 25 Dec 2008 18:40:27 +0800
parents 2637519e2bd7
children f08b3ba9c1d8
comparison
equal deleted inserted replaced
234:889cdc5f23c5 235:65cabbdd5284
111 } 111 }
112 112
113 DARRAY_DEFINE(coords, coord_t *); 113 DARRAY_DEFINE(coords, coord_t *);
114 DARRAY_DEFINE(geos, geo_t *); 114 DARRAY_DEFINE(geos, geo_t *);
115 DARRAY_DEFINE(areas, area_t *); 115 DARRAY_DEFINE(areas, area_t *);
116
117 int rdman_add_gen_geos(redraw_man_t *rdman, geo_t *geo) {
118 int r;
119
120 r = geos_add(rdman_get_gen_geos(rdman), geo);
121 return r;
122 }
116 123
117 /*! Use \brief DARRAY to implement dirty & free lists. 124 /*! Use \brief DARRAY to implement dirty & free lists.
118 */ 125 */
119 #define ADD_DATA(sttype, field, v) \ 126 #define ADD_DATA(sttype, field, v) \
120 int r; \ 127 int r; \
1064 int n_areas, 1071 int n_areas,
1065 area_t **areas) { 1072 area_t **areas) {
1066 int i; 1073 int i;
1067 1074
1068 for(i = 0; i < n_areas; i++) { 1075 for(i = 0; i < n_areas; i++) {
1069 if(is_overlay(geo->cur_area, areas[i])) 1076 if(areas_are_overlay(geo->cur_area, areas[i]))
1070 return 1; 1077 return 1;
1071 } 1078 }
1072 return 0; 1079 return 0;
1073 } 1080 }
1074 1081