projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b92f132
)
use existing macro ELM_RECT_INTERSECT(x, y, w, h, xx, yy, ww, hh) to check displayed...
author
Shinwoo Kim
<kimcinoo.efl@gmail.com>
Wed, 24 Oct 2012 02:01:58 +0000
(
02:01
+0000)
committer
Shinwoo Kim
<kimcinoo.efl@gmail.com>
Wed, 24 Oct 2012 02:01:58 +0000
(
02:01
+0000)
SVN revision: 78380
src/lib/elm_genlist.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_genlist.c
b/src/lib/elm_genlist.c
index
4dac5fa
..
75d3f04
100644
(file)
--- a/
src/lib/elm_genlist.c
+++ b/
src/lib/elm_genlist.c
@@
-2388,10
+2388,8
@@
_elm_genlist_smart_focus_next(const Evas_Object *obj,
evas_object_geometry_get(it->base.view, &x, &y, &w, &h);
/* check item which displays more than half of its size */
- if (((x + (w / 2)) >= sx) &&
- ((y + (h / 2)) >= sy) &&
- ((x + (w / 2)) <= (sx + sw)) &&
- ((y + (h / 2)) <= (sy + sh)))
+ if (ELM_RECTS_INTERSECT
+ (x + (w / 2), y + (h / 2), 0, 0, sx, sy, sw, sh))
items = eina_list_append(items, it->base.access_obj);
}
}