diff src/geo.c @ 235:65cabbdd5284

termporary revision
author Thinker K.F. Li <thinker@branda.to>
date Thu, 25 Dec 2008 18:40:27 +0800
parents 530bb7728546
children 586e50f82c1f
line wrap: on
line diff
--- a/src/geo.c	Wed Dec 24 23:43:39 2008 +0800
+++ b/src/geo.c	Thu Dec 25 18:40:27 2008 +0800
@@ -19,7 +19,7 @@
     return 1;
 }
 
-static int _is_overlay(area_t *r1, area_t *r2) {
+static int _areas_are_overlay(area_t *r1, area_t *r2) {
     if(is_scale_overlay(r1->x, r1->w, r2->x, r2->w) &&
        is_scale_overlay(r1->y, r1->h, r2->y, r2->h))
 	return 1;
@@ -27,8 +27,8 @@
     return 0;
 }
 
-int is_overlay(area_t *r1, area_t *r2) {
-    return _is_overlay(r1, r2);
+int areas_are_overlay(area_t *r1, area_t *r2) {
+    return _areas_are_overlay(r1, r2);
 }
 
 void area_init(area_t *area, int n_pos, co_aix pos[][2]) {
@@ -86,7 +86,7 @@
 
     ov_idx = 0;
     for(i = 0; i < n_others; i++) {
-	if(_is_overlay(g->cur_area, others[i]->cur_area))
+	if(_areas_are_overlay(g->cur_area, others[i]->cur_area))
 	    overlays[ov_idx++] = others[i];
     }
     *n_overlays = ov_idx;