summaryrefslogtreecommitdiff
path: root/src/lib/emotion/emotion_smart.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 20:56:45 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-19 10:51:48 +0900
commita3250f975a4aa04b487ab22edf716c6bc188e6bb (patch)
tree3516a1ff63865b90fa2f363bb1b544ff66005184 /src/lib/emotion/emotion_smart.c
parent89a7d9ea8ed64248397df1ec2b85c63a835a0a22 (diff)
efl: Use Eina.Size2D for image load size
Diffstat (limited to 'src/lib/emotion/emotion_smart.c')
-rw-r--r--src/lib/emotion/emotion_smart.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index 0cdbaae..04e1901 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -757,17 +757,18 @@ emotion_object_play_length_get(const Evas_Object *obj)
757EAPI void 757EAPI void
758emotion_object_size_get(const Evas_Object *obj, int *iw, int *ih) 758emotion_object_size_get(const Evas_Object *obj, int *iw, int *ih)
759{ 759{
760 if (iw) *iw = 0; 760 Eina_Size2D sz;
761 if (ih) *ih = 0;
762 761
763 efl_image_load_size_get(obj, iw, ih); 762 sz = efl_image_load_size_get(obj);
763 if (iw) *iw = sz.w;
764 if (ih) *ih = sz.h;
764} 765}
765 766
766EOLIAN static void 767EOLIAN static Eina_Size2D
767_efl_canvas_video_efl_image_load_load_size_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd, int *iw, int *ih) 768_efl_canvas_video_efl_image_load_load_size_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
768{ 769{
769 if (iw) *iw = sd->video.w; 770 // FIXME: Shouldn't this be efl_gfx_view_size instead?
770 if (ih) *ih = sd->video.h; 771 return EINA_SIZE2D(sd->video.w, sd->video.h);
771} 772}
772 773
773EAPI void 774EAPI void