evas: fix default return value of image-related legacy functions

In commit 8367f497b8,
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
This commit is contained in:
Jaeun Choi 2018-04-30 16:52:21 +09:00
parent 5b08611a9e
commit 9fa1c8a2e3
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}