summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeyong Hwang <j_yong.hwang@samsung.com>2017-06-12 10:06:14 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-06-12 10:06:19 -0700
commit03adadcda8d4adb58115c66550daa998a0cd555a (patch)
tree5e6f870e8efed1f7d7707c7c33b3ec90948c7583
parent764194a8927e346146bb8122d99f32b792377cb6 (diff)
downloadefl-03adadcda8d4adb58115c66550daa998a0cd555a.tar.gz
evas: fix a stride value after calling evas_object_image_orient_set API
Summary: Before the value of stride is calculated, the weight and height of the rotated image should be set. Test Plan: {F1409510} Reviewers: jpeg Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4955 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
-rw-r--r--src/lib/evas/canvas/evas_object_image.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index ee32f1896d..6737c078e4 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -422,6 +422,13 @@ _evas_image_orientation_set(Eo *eo_obj, Evas_Image_Data *o, Evas_Image_Orient or
int stride = 0;
o->engine_data = ENFN->image_orient_set(ENDT, o->engine_data, orient);
+ ENFN->image_size_get(ENDT, o->engine_data, &iw, &ih);
+ EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
+ {
+ state_write->image.w = iw;
+ state_write->image.h = ih;
+ }
+ EINA_COW_IMAGE_STATE_WRITE_END(o, state_write);
if(o->engine_data)
{
EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
@@ -440,13 +447,6 @@ _evas_image_orientation_set(Eo *eo_obj, Evas_Image_Data *o, Evas_Image_Orient or
}
o->written = EINA_TRUE;
}
- ENFN->image_size_get(ENDT, o->engine_data, &iw, &ih);
- EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
- {
- state_write->image.w = iw;
- state_write->image.h = ih;
- }
- EINA_COW_IMAGE_STATE_WRITE_END(o, state_write);
}
o->changed = EINA_TRUE;
evas_object_change(eo_obj, obj);