forked from enlightenment/efl
parent
3fd0a6fb08
commit
f5acc84e67
|
@ -704,7 +704,7 @@ typedef void (*Evas_Async_Events_Put_Cb)(void *target, Evas_Callback_Type t
|
|||
EAPI int evas_output_method_get (const Evas *e) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_PURE;
|
||||
|
||||
EAPI Evas_Engine_Info *evas_engine_info_get (const Evas *e) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_PURE;
|
||||
EAPI int evas_engine_info_set (Evas *e, Evas_Engine_Info *info) EINA_ARG_NONNULL(1);
|
||||
EAPI Eina_Bool evas_engine_info_set (Evas *e, Evas_Engine_Info *info) EINA_ARG_NONNULL(1);
|
||||
|
||||
/**
|
||||
* @defgroup Evas_Output_Size Output and Viewport Resizing Functions
|
||||
|
|
|
@ -406,16 +406,16 @@ evas_engine_info_get(const Evas *e)
|
|||
* @return 1 if no error occurred, 0 otherwise
|
||||
* @ingroup Evas_Output_Method
|
||||
*/
|
||||
EAPI int
|
||||
EAPI Eina_Bool
|
||||
evas_engine_info_set(Evas *e, Evas_Engine_Info *info)
|
||||
{
|
||||
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
|
||||
return 0;
|
||||
return EINA_FALSE;
|
||||
MAGIC_CHECK_END();
|
||||
if (!info) return 0;
|
||||
if (info != e->engine.info) return 0;
|
||||
if (info->magic != e->engine.info_magic) return 0;
|
||||
return e->engine.func->setup(e, info);
|
||||
if (!info) return EINA_FALSE;
|
||||
if (info != e->engine.info) return EINA_FALSE;
|
||||
if (info->magic != e->engine.info_magic) return EINA_FALSE;
|
||||
return (Eina_Bool)e->engine.func->setup(e, info);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue