Fix sdl engine.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 22 Dec 2008 11:16:26 +0000 (11:16 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 22 Dec 2008 11:16:26 +0000 (11:16 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@38277 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas_sdl.c

index e7b97a3..2274024 100644 (file)
@@ -436,6 +436,8 @@ static const Ecore_Evas_Engine_Func _ecore_sdl_engine_func =
    NULL,
    NULL,
    NULL,
+   NULL,
+   NULL,
    NULL
 };
 
@@ -457,8 +459,6 @@ _ecore_evas_internal_sdl_new(int rmethod, const char* name, int w, int h, int fu
 
    ECORE_MAGIC_SET(ee, ECORE_MAGIC_EVAS);
 
-   _ecore_evas_sdl_init(w, h);
-
    ee->engine.func = (Ecore_Evas_Engine_Func *)&_ecore_sdl_engine_func;
 
    ee->driver = "sdl";
@@ -511,6 +511,8 @@ _ecore_evas_internal_sdl_new(int rmethod, const char* name, int w, int h, int fu
 
    evas_event_feed_mouse_in(ee->evas, (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff), NULL);
 
+   _ecore_evas_sdl_init(w, h);
+
    SDL_ShowCursor(SDL_DISABLE);
 
    ecore_evases = _ecore_list2_prepend(ecore_evases, ee);