summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_image.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-03-02 19:39:41 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-03-15 11:11:59 +0900
commite3de15d72642a61f57dda280befe458cb546c527 (patch)
tree15ed00b7385b4801e220de964873ad3681c21d55 /src/lib/evas/canvas/evas_object_image.c
parentfd2c4b4a268b59c2d92dc3d13ada83f56e011861 (diff)
Efl.Image: Fix documentation for ratio + implement in evas image
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_object_image.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index 15f2b0c07f..60802326b1 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -1534,6 +1534,13 @@ _evas_image_efl_image_smooth_scale_get(Eo *eo_obj EINA_UNUSED, Evas_Image_Data *
1534 return o->cur->smooth_scale; 1534 return o->cur->smooth_scale;
1535} 1535}
1536 1536
1537EOLIAN static double
1538_evas_image_efl_image_ratio_get(Eo *eo_obj EINA_UNUSED, Evas_Image_Data *o)
1539{
1540 if (!o->cur->image.h) return 1.0;
1541 return (double) o->cur->image.w / (double) o->cur->image.h;
1542}
1543
1537/* deprecated */ 1544/* deprecated */
1538EAPI void 1545EAPI void
1539evas_object_image_reload(Eo *eo_obj) 1546evas_object_image_reload(Eo *eo_obj)