From: kakaroto Date: Wed, 7 Sep 2011 06:58:28 +0000 (+0000) Subject: Ecore: Allow ecore-evas-sdl to work with software-sdl-16 engine. Also removed dead... X-Git-Tag: build/2012-07-04.173327~867 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98ac20267cee07f1a7457ee60aacbd5545766363;p=profile%2Fivi%2Fecore.git Ecore: Allow ecore-evas-sdl to work with software-sdl-16 engine. Also removed dead code git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@63253 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_evas/ecore_evas_sdl.c b/src/lib/ecore_evas/ecore_evas_sdl.c index 9a2048f..7f13f98 100644 --- a/src/lib/ecore_evas/ecore_evas_sdl.c +++ b/src/lib/ecore_evas/ecore_evas_sdl.c @@ -35,7 +35,6 @@ static Ecore_Event_Handler *ecore_evas_event_handlers[4] = { static const char *ecore_evas_sdl_default = "EFL SDL"; static int _ecore_evas_fps_debug = 0; static Ecore_Poller *ecore_evas_event; -static Ecore_Evas *ecore_evases = NULL; static Ecore_Evas * _ecore_evas_sdl_match(void) @@ -346,8 +345,6 @@ _ecore_evas_internal_sdl_new(int rmethod, const char* name, int w, int h, int fu if (!name) name = ecore_evas_sdl_default; - if (ecore_evases) return NULL; - ee = calloc(1, sizeof(Ecore_Evas)); if (!ee) return NULL; @@ -384,7 +381,8 @@ _ecore_evas_internal_sdl_new(int rmethod, const char* name, int w, int h, int fu evas_output_size_set(ee->evas, w, h); evas_output_viewport_set(ee->evas, 0, 0, w, h); - if (rmethod == evas_render_method_lookup("software_sdl")) + if (rmethod == evas_render_method_lookup("software_sdl") || + rmethod == evas_render_method_lookup("software_16_sdl") ) { #ifdef BUILD_ECORE_EVAS_SOFTWARE_SDL einfo = evas_engine_info_get(ee->evas);