properly initialize evas

SVN revision: 10726
This commit is contained in:
tsauerbeck 2004-07-07 19:27:26 +00:00 committed by tsauerbeck
parent 4be5caefbd
commit 9b1524ef35
1 changed files with 4 additions and 4 deletions

View File

@ -15,14 +15,14 @@ static int _ecore_evas_init_count = 0;
int int
ecore_evas_init(void) ecore_evas_init(void)
{ {
_ecore_evas_init_count++; evas_init ();
if (_ecore_evas_init_count > 1) return _ecore_evas_init_count;
return _ecore_evas_init_count; return ++_ecore_evas_init_count;
} }
/** /**
* Shut down the Evas system. * 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. * This closes the Evas system down.
*/ */