diff options
author | Jaeun Choi <jaeun12.choi@samsung.com> | 2017-01-13 20:23:54 +0900 |
---|---|---|
committer | Jaeun Choi <jaeun12.choi@samsung.com> | 2017-01-13 20:34:02 +0900 |
commit | 70ad68bfc76f897b89c8db19652aa9c6607d3eb0 (patch) | |
tree | cc9cf1a06af9ab0b9768c64224a007864ff9c998 /src | |
parent | 4fe9144c9dac0df02cfcd5b2d11f2a9438285056 (diff) |
elm_bg: rotate image according to the orientation info
rotate image into the standard orientation according to the EXIF data
(think about taking a picture from camera and setting it as bg)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/elementary/elm_bg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_bg.c b/src/lib/elementary/elm_bg.c index 2023239469..b2d5eb9ca4 100644 --- a/src/lib/elementary/elm_bg.c +++ b/src/lib/elementary/elm_bg.c | |||
@@ -157,6 +157,7 @@ _elm_bg_efl_file_file_set(Eo *obj, Elm_Bg_Data *sd, const char *file, const char | |||
157 | 157 | ||
158 | sd->img = evas_object_image_add | 158 | sd->img = evas_object_image_add |
159 | (evas_object_evas_get(wd->resize_obj)); | 159 | (evas_object_evas_get(wd->resize_obj)); |
160 | evas_object_image_load_orientation_set(sd->img, EINA_TRUE); | ||
160 | if ((sd->load_opts.w > 0) && (sd->load_opts.h > 0)) | 161 | if ((sd->load_opts.w > 0) && (sd->load_opts.h > 0)) |
161 | evas_object_image_load_size_set | 162 | evas_object_image_load_size_set |
162 | (sd->img, sd->load_opts.w, sd->load_opts.h); | 163 | (sd->img, sd->load_opts.w, sd->load_opts.h); |