summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@profusion.mobi>2012-12-04 15:39:51 +0000
committerIván Briano <sachieru@gmail.com>2012-12-04 15:39:51 +0000
commitdcd25a2d9cc86e1a7a318b8544753352d205da1f (patch)
treef453cd6d25b8328b0aaf97671e47cec6171cd9fc /src
parent93bc9597b2419f2066a268a47346c55bc55c0bc0 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/canvas/evas_object_image.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index ca9d8e4cb9..9c8fc69762 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -3088,6 +3088,14 @@ evas_object_image_load(Evas_Object *eo_obj)
3088 lo.region.y = o->load_opts.region.y; 3088 lo.region.y = o->load_opts.region.y;
3089 lo.region.w = o->load_opts.region.w; 3089 lo.region.w = o->load_opts.region.w;
3090 lo.region.h = o->load_opts.region.h; 3090 lo.region.h = o->load_opts.region.h;
3091 lo.scale_load.src_x = o->load_opts.scale_load.src_x;
3092 lo.scale_load.src_y = o->load_opts.scale_load.src_y;
3093 lo.scale_load.src_w = o->load_opts.scale_load.src_w;
3094 lo.scale_load.src_h = o->load_opts.scale_load.src_h;
3095 lo.scale_load.dst_w = o->load_opts.scale_load.dst_w;
3096 lo.scale_load.dst_h = o->load_opts.scale_load.dst_h;
3097 lo.scale_load.smooth = o->load_opts.scale_load.smooth;
3098 lo.scale_load.scale_hint = o->load_opts.scale_load.scale_hint;
3091 lo.orientation = o->load_opts.orientation; 3099 lo.orientation = o->load_opts.orientation;
3092 o->engine_data = obj->layer->evas->engine.func->image_load 3100 o->engine_data = obj->layer->evas->engine.func->image_load
3093 (obj->layer->evas->engine.data.output, 3101 (obj->layer->evas->engine.data.output,