efl/evas_object_image_is_inside: fixed implementation.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Wed, 19 Dec 2012 22:41:12 +0000 (22:41 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Wed, 19 Dec 2012 22:41:12 +0000 (22:41 +0000)
commit3f5fa6170c50d9c1c455ed545eca44614730109d
tree3e626ebc855d690b482c916b0ccbcfbfd210f05c
parent7c19e1b34d28d224dfb50f2b942209e3986b9eeb
efl/evas_object_image_is_inside: fixed implementation.

This function was basically never working correctly. Everything was
fixed by simulating the evas_object_image_render() workflow, but
instead of actually draw we just check the pixel transparency.

Bugs fixed:

 * fails when image is scaled up (could segv) or down (incorrect values);
 * fails when image is moved to negative x,y;
 * fails when border was being used.

Now everything is fixed and seems to work properly, except I'm not
handling the map and get_pixels() cases, these are marked with ERR()
so we can fix them if someone needs.

SVN revision: 81410
ChangeLog
NEWS
src/lib/evas/canvas/evas_object_image.c