edje: initialize map.zoom values to fix old *.edj compatibility issues. accepted/tizen/mobile/20151120.070412 accepted/tizen/tv/20151120.070424 accepted/tizen/wearable/20151120.070435 submit/tizen/20151118.115124 submit/tizen/20151119.043935
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 10 Nov 2015 22:52:57 +0000 (14:52 -0800)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Wed, 18 Nov 2015 11:52:44 +0000 (20:52 +0900)
Summary:
The initial values for map.zoom.x(y) should be [1.0]: it means 100%.
The values from newly builded edj has been set properly.
But, if a part from old *.edj turns on map feature, map.zoom.x(y) will be set [0.0]: it means 0%.
So, the part will be invisible. We need to initialize these values.
@fix

Test Plan:
1. Build a *.edc file which has a part with [description.map.on: 1;] in EFL 1.13.
2. See it works well in EFL 1.13.
3. Install EFL 1.14 or laters.
4. See the part is disappear.

Reviewers: Hermet, jpeg, cedric

Reviewed By: cedric

Subscribers: jiin.moon

Differential Revision: https://phab.enlightenment.org/D3302

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/edje/edje_data.c

index 230cd4a..fb50b45 100644 (file)
@@ -100,6 +100,7 @@ Eet_Data_Descriptor *_edje_edd_edje_filter_directory = NULL;
      data = eina_mempool_malloc(_emp_##Type, size); \
      memset(data, 0, size);                         \
      data->clip_to_id = -1;                         \
+     data->map.zoom.x = data->map.zoom.y = 1.0;     \
      return data;                                   \
   }                                                 \
                                                     \