evas/canvas - Update the pointer to engine_data after pixels_get().

The "pixels" pointer was set in the beginning of evas_object_image_render(),
and never updated, even after pixels_get() changed the content of
o->engine_data.

This patch updates that pointer if it becomes different from engine_data.



SVN revision: 63090
This commit is contained in:
Rafael Antognolli 2011-09-02 14:06:25 +00:00
parent 4f844f63f5
commit 92b98ad145
1 changed files with 2 additions and 0 deletions

View File

@ -2798,6 +2798,8 @@ evas_object_image_render(Evas_Object *obj, void *output, void *context, void *su
if (o->func.get_pixels)
{
o->func.get_pixels(o->func.get_pixels_data, obj);
if (o->engine_data != pixels)
pixels = o->engine_data;
o->engine_data = obj->layer->evas->engine.func->image_dirty_region
(obj->layer->evas->engine.data.output, o->engine_data,
0, 0, o->cur.image.w, o->cur.image.h);