summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-08 23:29:40 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-08 23:32:43 +0900
commit7566c5bbb7e7604ee26074323ff106c8d42b8a17 (patch)
tree124798a15285869dc1aab0c072950a0a9b1c31f6 /src
parent96fe10ba68ba346604e66e0837ffe93a89714e6f (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/modules/ecore_evas/engines/x/ecore_evas_x.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/modules/ecore_evas/engines/x/ecore_evas_x.c b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
index b33d8182aa..56514c71d4 100644
--- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c
+++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
@@ -3300,18 +3300,15 @@ _ecore_evas_x_flush_pre(void *data, Evas *e EINA_UNUSED, void *event_info EINA_U
3300 3300
3301 if (ee->no_comp_sync) return; 3301 if (ee->no_comp_sync) return;
3302 if (!_ecore_evas_app_comp_sync) return; 3302 if (!_ecore_evas_app_comp_sync) return;
3303 if (edata->sync_counter) 3303 if (!edata->sync_counter) return;
3304 if (!edata->sync_began) return;
3305
3306 edata->sync_val++;
3307 if (!edata->sync_cancel)
3304 { 3308 {
3305 if (edata->sync_began) 3309 if (!ee->semi_sync)
3306 { 3310 ecore_x_sync_counter_val_wait(edata->sync_counter,
3307 edata->sync_val++; 3311 edata->sync_val);
3308 if (!edata->sync_cancel)
3309 {
3310 if (!ee->semi_sync)
3311 ecore_x_sync_counter_val_wait(edata->sync_counter,
3312 edata->sync_val);
3313 }
3314 }
3315 } 3312 }
3316} 3313}
3317 3314