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,18 +3300,15 @@ _ecore_evas_x_flush_pre(void *data, Evas *e EINA_UNUSED, void *event_info EINA_U
|
||||||
|
|
||||||
if (ee->no_comp_sync) return;
|
if (ee->no_comp_sync) return;
|
||||||
if (!_ecore_evas_app_comp_sync) return;
|
if (!_ecore_evas_app_comp_sync) return;
|
||||||
if (edata->sync_counter)
|
if (!edata->sync_counter) return;
|
||||||
|
if (!edata->sync_began) return;
|
||||||
|
|
||||||
|
edata->sync_val++;
|
||||||
|
if (!edata->sync_cancel)
|
||||||
{
|
{
|
||||||
if (edata->sync_began)
|
if (!ee->semi_sync)
|
||||||
{
|
ecore_x_sync_counter_val_wait(edata->sync_counter,
|
||||||
edata->sync_val++;
|
edata->sync_val);
|
||||||
if (!edata->sync_cancel)
|
|
||||||
{
|
|
||||||
if (!ee->semi_sync)
|
|
||||||
ecore_x_sync_counter_val_wait(edata->sync_counter,
|
|
||||||
edata->sync_val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue