Quantcast
Channel: Enlightenment
Viewing all articles
Browse latest Browse all 1612

Changeset [81500]: evas_object_image_is_inside: fixed implementation. Backport of 81410. ...

$
0
0

evas_object_image_is_inside: fixed implementation.

Backport of 81410.

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.


Viewing all articles
Browse latest Browse all 1612

Trending Articles