forked from enlightenment/efl
ecore_evas_x: Refactored by reducing cascaded if statements.
Just return the function. Do not create unnecessary cascaded if statements it makes indentation depth deeper.
This commit is contained in:
parent
96fe10ba68
commit
7566c5bbb7
|
@ -3300,10 +3300,9 @@ _ecore_evas_x_flush_pre(void *data, Evas *e EINA_UNUSED, void *event_info EINA_U
|
|||
|
||||
if (ee->no_comp_sync) return;
|
||||
if (!_ecore_evas_app_comp_sync) return;
|
||||
if (edata->sync_counter)
|
||||
{
|
||||
if (edata->sync_began)
|
||||
{
|
||||
if (!edata->sync_counter) return;
|
||||
if (!edata->sync_began) return;
|
||||
|
||||
edata->sync_val++;
|
||||
if (!edata->sync_cancel)
|
||||
{
|
||||
|
@ -3312,8 +3311,6 @@ _ecore_evas_x_flush_pre(void *data, Evas *e EINA_UNUSED, void *event_info EINA_U
|
|||
edata->sync_val);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ecore_evas_x_flush_post(void *data, Evas *e EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
|
|
Loading…
Reference in New Issue