genlist: do not evaluate against max coord if the value is negative
authorShuhrat Dehkanov <sh.dehkanov@samsung.com>
Mon, 11 Apr 2016 12:11:28 +0000 (17:41 +0530)
committerAmitesh Singh <amitesh.sh@samsung.com>
Mon, 11 Apr 2016 12:14:56 +0000 (17:44 +0530)
commiteae53f221809b7e66bae1476f5697e9e4153ceaa
treeaa34bb7b392768950c85543f1267af280f5c70c3
parent810ebb5db8e0ba97756cb0af8d701d973394379a
genlist: do not evaluate against max coord if the value is negative

Summary:
If x is already less than '0', there is no need to check if it is
bigger than pan_max_x. Likewise, if y is already less than '0',
there is no need to check if it is bigger than pan_max_y.

Reviewers: Hermet, cedric, SanghyeonLee, singh.amitesh

Reviewed By: singh.amitesh

Subscribers: seoz, minkyu, sju27, jpeg

Differential Revision: https://phab.enlightenment.org/D3865
src/lib/elementary/elm_genlist.c