diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas.c index 25478092f4..07b92ed396 100644 --- a/legacy/ecore/src/lib/ecore_evas/ecore_evas.c +++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas.c @@ -15,14 +15,14 @@ static int _ecore_evas_init_count = 0; int ecore_evas_init(void) { - _ecore_evas_init_count++; - if (_ecore_evas_init_count > 1) return _ecore_evas_init_count; - return _ecore_evas_init_count; + evas_init (); + + return ++_ecore_evas_init_count; } /** * Shut down the Evas system. - * @return 0 if ecore evas is fully shut down, or 1 if it still needs to be shut down + * @return 0 if ecore evas is fully shut down, or > 0 if it still needs to be shut down * * This closes the Evas system down. */