aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJaeun Choi <jaeun12.choi@samsung.com>2018-04-30 16:52:21 +0900
committerJaeun Choi <jaeun12.choi@samsung.com>2018-04-30 17:55:24 +0900
commit9fa1c8a2e31ba54747296e28edb32c645b6f4385 (patch)
tree81205554a4a0a8d67afb23a282783958af27d325 /src
parentecore animator, x, vsync ecore evas restore x vsync to work again (diff)
downloadefl-9fa1c8a2e31ba54747296e28edb32c645b6f4385.tar.gz
evas: fix default return value of image-related legacy functions
In commit 8367f497b8f1e9a7b365c815f12deeab9c92e1a5, type checking code was added for legacy image functions in order to reduce failing calls of efl_xxx function. The default return values of some functions for none-legacy objects (including NULL), however, were not equal to eo-based default return value, which broke compatibility. This commit fixes it. @fix
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/canvas/evas_image_legacy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_image_legacy.c b/src/lib/evas/canvas/evas_image_legacy.c
index 797a2de5c6..e38c1a2d77 100644
--- a/src/lib/evas/canvas/evas_image_legacy.c
+++ b/src/lib/evas/canvas/evas_image_legacy.c
@@ -138,7 +138,7 @@ evas_object_image_border_scale_set(Evas_Object *obj, double scale)
EAPI double
evas_object_image_border_scale_get(const Evas_Object *obj)
{
- EVAS_IMAGE_API(obj, 1.0);
+ EVAS_IMAGE_API(obj, 0.0);
return efl_gfx_image_border_scale_get(obj);
}
@@ -152,7 +152,7 @@ evas_object_image_border_center_fill_set(Evas_Object *obj, Evas_Border_Fill_Mode
EAPI Evas_Border_Fill_Mode
evas_object_image_border_center_fill_get(const Evas_Object *obj)
{
- EVAS_IMAGE_API(obj, EVAS_BORDER_FILL_DEFAULT);
+ EVAS_IMAGE_API(obj, EVAS_BORDER_FILL_NONE);
return (Evas_Border_Fill_Mode) efl_gfx_image_border_center_fill_get(obj);
}