forked from enlightenment/enlightenment
Use better macro for checking point inside square.
SVN revision: 24534
This commit is contained in:
parent
d899722d58
commit
573911abdd
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue