summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiscomfitor <michael.blumenkrantz@gmail.com>2013-10-01 16:14:26 +0100
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-10-01 16:14:26 +0100
commit6aca27f5aa6cf514c6937551208b3ba637ccdd3f (patch)
tree412da536053413e1ca92c63b0aecbac174cd71d4
parent3abb6e81b865b6e11fcf3cf22dfc9162f1404381 (diff)
fix loop counting
-rw-r--r--compbench.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/compbench.c b/compbench.c
index ce90598..f6b6a93 100644
--- a/compbench.c
+++ b/compbench.c
@@ -70,9 +70,11 @@ static Eina_Bool
70_test_init(void) 70_test_init(void)
71{ 71{
72 Evas_Object *pwin; 72 Evas_Object *pwin;
73 Eina_Bool ret = EINA_FALSE;
73 74
74 test++; 75 test++;
75 if (test == TEST_END) 76 ret = (test == TEST_END);
77 if (ret)
76 test = TEST_NORMAL; 78 test = TEST_NORMAL;
77 79
78 pwin = win; 80 pwin = win;
@@ -106,7 +108,7 @@ _test_init(void)
106 /* first effect is a resize! */ 108 /* first effect is a resize! */
107 efx_resize(rect, EFX_EFFECT_SPEED_LINEAR, NULL, 100, 100, 10.0, _resize1, NULL); 109 efx_resize(rect, EFX_EFFECT_SPEED_LINEAR, NULL, 100, 100, 10.0, _resize1, NULL);
108 if (pwin) evas_object_del(pwin); 110 if (pwin) evas_object_del(pwin);
109 return EINA_FALSE; 111 return ret;
110} 112}
111 113
112static void 114static void