evas/image: Fix uninitialised data passed to Cserve2

If information like size, scale down, dpi or region is set to any object,
or even if reload of that object is required, evas_object_image_load() is
called and Evas needs to pass scaling information through load_opts as
evas_object_image_file_set() does to Cserve2 as well.

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 80176
This commit is contained in:
Paulo Alcantara 2012-12-04 15:39:51 +00:00 committed by Iván Briano
parent 93bc9597b2
commit dcd25a2d9c
1 changed files with 8 additions and 0 deletions

View File

@ -3088,6 +3088,14 @@ evas_object_image_load(Evas_Object *eo_obj)
lo.region.y = o->load_opts.region.y;
lo.region.w = o->load_opts.region.w;
lo.region.h = o->load_opts.region.h;
lo.scale_load.src_x = o->load_opts.scale_load.src_x;
lo.scale_load.src_y = o->load_opts.scale_load.src_y;
lo.scale_load.src_w = o->load_opts.scale_load.src_w;
lo.scale_load.src_h = o->load_opts.scale_load.src_h;
lo.scale_load.dst_w = o->load_opts.scale_load.dst_w;
lo.scale_load.dst_h = o->load_opts.scale_load.dst_h;
lo.scale_load.smooth = o->load_opts.scale_load.smooth;
lo.scale_load.scale_hint = o->load_opts.scale_load.scale_hint;
lo.orientation = o->load_opts.orientation;
o->engine_data = obj->layer->evas->engine.func->image_load
(obj->layer->evas->engine.data.output,