Fix incorrect return value of eng_output_setup()
Change-Id: Ia8beb0d1d41c9d38cf0210baa3564f7464b7c249
return swap_mode;
}
-static int
+static void *
eng_output_setup(void *engine, void *info, unsigned int w, unsigned int h)
{
Render_Output_Swap_Mode swap_mode = MODE_FULL;
eng_window_use(eng_get_ob(re));
- return 1;
+ return re;
ob_err:
free(re);
- return 0;
+ return NULL;
}
static int
einfo->render_mode = EVAS_RENDER_MODE_BLOCKING;
}
-static int
+static void *
eng_output_setup(void *engine, void *info, unsigned int w, unsigned int h)
{
Evas_Engine_Info_Software_Tbm *einfo;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* try to cast to our engine info */
if (!(einfo = (Evas_Engine_Info_Software_Tbm *)info))
- return 0;
+ return NULL;
/* if we have no engine data, assume we have not initialized yet */
evas_common_init();
else
goto err;
- return 1;
+ return re;
err:
evas_common_shutdown();
- return 0;
+ return NULL;
}
static void