Use better macro for checking point inside square.

SVN revision: 24534
This commit is contained in:
sebastid 2006-08-10 14:41:12 +00:00 committed by sebastid
parent d899722d58
commit 573911abdd
2 changed files with 2 additions and 4 deletions

View File

@ -337,8 +337,7 @@ e_container_zone_at_point_get(E_Container *con, int x, int y)
E_Zone *zone;
zone = l->data;
if ((E_SPANS_COMMON(zone->x, zone->w, x, 1)) &&
(E_SPANS_COMMON(zone->y, zone->h, y, 1)))
if (E_INSIDE(x, y, zone->x, zone->y, zone->w, zone->h))
return zone;
}
return NULL;

View File

@ -245,8 +245,7 @@ e_zone_current_get(E_Container *con)
E_Zone *zone;
zone = l->data;
if (E_INTERSECTS(x, y, 1, 1,
zone->x, zone->y, zone->w, zone->h))
if (E_INSIDE(x, y, zone->x, zone->y, zone->w, zone->h))
return zone;
}
}