From 6fa73c8ac93cba3fd3f610363b2197454f53d6ae Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Thu, 18 Aug 2016 22:12:04 +0900 Subject: [PATCH] Elementary: Load image for image item with proper orientation Summary: Image files can have orientation information. Elm Entry have to call evas_object_image_load_orientation_set() for showing image with proper orientation. Test Plan: N/A Reviewers: herdsman, raster, jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D4244 Change-Id: I47626055dddb371fbc8e0e10ef2670567fc9d175 --- src/lib/elm_entry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 7702e43..8953c9b 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -3819,6 +3819,7 @@ _item_get(void *data, const char *fname = item + 7; o = evas_object_image_filled_add(evas_object_evas_get(data)); + evas_object_image_load_orientation_set(o, EINA_TRUE); evas_object_image_file_set(o, fname, NULL); if (evas_object_image_load_error_get(o) == EVAS_LOAD_ERROR_NONE) { -- 2.7.4