flip: use eo_isa for checking object types

This commit is contained in:
Amitesh Singh 2015-10-22 22:36:01 +05:30
parent dcc066569f
commit e58a8f848c
1 changed files with 2 additions and 3 deletions

View File

@ -933,11 +933,10 @@ static void
_map_uv_set(Evas_Object *obj, Evas_Map *map)
{
Evas_Coord x, y, w, h;
const char *type = evas_object_type_get(obj);
// FIXME: only handles filled obj
if ((type) && (!strcmp(type, "image") &&
!evas_object_image_source_get(obj)))
if (eo_isa(obj, EVAS_IMAGE_CLASS) &&
!evas_object_image_source_get(obj))
{
int iw, ih;
evas_object_image_size_get(obj, &iw, &ih);