forked from enlightenment/efl
evas: Fix type checking for legacy APIs
This should fix canvas 3d examples (that were calling fill_set and evas would reject with "object is not an image").
This commit is contained in:
parent
4fb0668c71
commit
17a51cffd3
|
@ -4,7 +4,7 @@
|
|||
#include "evas_image.eo.h"
|
||||
|
||||
#define EVAS_IMAGE_API(_o, ...) do { \
|
||||
if (EINA_UNLIKELY(!eo_isa(_o, EVAS_IMAGE_CLASS))) { \
|
||||
if (EINA_UNLIKELY(!eo_isa(_o, EFL_CANVAS_IMAGE_INTERNAL_CLASS))) { \
|
||||
EINA_SAFETY_ERROR("object is not an image!"); \
|
||||
return __VA_ARGS__; \
|
||||
} } while (0)
|
||||
|
|
Loading…
Reference in New Issue