move setup of loop time to init.

SVN revision: 37424
This commit is contained in:
Carsten Haitzler 2008-11-02 22:32:18 +00:00
parent 6aaa2a7b35
commit f025b8cd62
2 changed files with 1 additions and 1 deletions

View File

@ -73,6 +73,7 @@ ecore_init(void)
if (_ecore_fps_debug) _ecore_fps_debug_init();
_ecore_signal_init();
_ecore_exe_init();
_ecore_loop_time = ecore_time_get();
}
return _ecore_init_count;

View File

@ -58,6 +58,5 @@ double _ecore_loop_time = -1.0;
EAPI double
ecore_loop_time_get(void)
{
if (_ecore_loop_time < 0.0) return ecore_time_get();
return _ecore_loop_time;
}