static void
_native_unbind_cb(void *data EINA_UNUSED, void *image)
{
- RGBA_Image *im = image;
- Native *n = im->native.data;
+ RGBA_Image *im;
+ Native *n;
tbm_surface_h tbm_surf;
- if (!im || !n) return;
+ if (!(im = image)) return;
+ if (!(n = im->native.data)) return;
if (n->ns.type == EVAS_NATIVE_SURFACE_TBM)
tbm_surf = n->ns.data.tbm.buffer;
static void
_native_free_cb(void *data EINA_UNUSED, void *image)
{
- RGBA_Image *im = image;
- Native *n = im->native.data;
+ RGBA_Image *im;
+ Native *n;
- if (!im) return;
+ if (!(im = image)) return;
+ if (!(n = im->native.data)) return;
im->native.data = NULL;
im->native.func.bind = NULL;
im->native.func.unbind = NULL;