diff 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
line wrap: on
line diff
--- a/src/redraw_man.c	Wed Dec 24 23:43:39 2008 +0800
+++ b/src/redraw_man.c	Thu Dec 25 18:40:27 2008 +0800
@@ -114,6 +114,13 @@
 DARRAY_DEFINE(geos, geo_t *);
 DARRAY_DEFINE(areas, area_t *);
 
+int rdman_add_gen_geos(redraw_man_t *rdman, geo_t *geo) {
+    int r;
+
+    r = geos_add(rdman_get_gen_geos(rdman), geo);
+    return r;
+}
+
 /*! Use \brief DARRAY to implement dirty & free lists.
  */
 #define ADD_DATA(sttype, field, v)		\
@@ -1066,7 +1073,7 @@
     int i;
 
     for(i = 0; i < n_areas; i++) {
-	if(is_overlay(geo->cur_area, areas[i]))
+	if(areas_are_overlay(geo->cur_area, areas[i]))
 	    return 1;
     }
     return 0;