diff options
Diffstat (limited to 'src/modules/evas/engines/software_x11/evas_engine.c')
-rw-r--r-- | src/modules/evas/engines/software_x11/evas_engine.c | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/src/modules/evas/engines/software_x11/evas_engine.c b/src/modules/evas/engines/software_x11/evas_engine.c index 211cd84fdd..5bcf91962e 100644 --- a/src/modules/evas/engines/software_x11/evas_engine.c +++ b/src/modules/evas/engines/software_x11/evas_engine.c @@ -45,9 +45,9 @@ struct _Render_Engine }; /* prototypes we will use here */ -static void *_best_visual_get(int backend, void *connection, int screen); -static unsigned int _best_colormap_get(int backend, void *connection, int screen); -static int _best_depth_get(int backend, void *connection, int screen); +static void *_best_visual_get(void *connection, int screen); +static unsigned int _best_colormap_get(void *connection, int screen); +static int _best_depth_get(void *connection, int screen); static Eina_List *_outbufs = NULL; @@ -165,34 +165,27 @@ on_error: } static void * -_best_visual_get(int backend, void *connection, int screen) +_best_visual_get(void *connection, int screen) { if (!connection) return NULL; - if (backend == EVAS_ENGINE_INFO_SOFTWARE_X11_BACKEND_XLIB) - return DefaultVisual((Display *)connection, screen); - - return NULL; + return DefaultVisual((Display *)connection, screen); } static unsigned int -_best_colormap_get(int backend, void *connection, int screen) +_best_colormap_get(void *connection, int screen) { if (!connection) return 0; - if (backend == EVAS_ENGINE_INFO_SOFTWARE_X11_BACKEND_XLIB) - return DefaultColormap((Display *)connection, screen); - return 0; + return DefaultColormap((Display *)connection, screen); } static int -_best_depth_get(int backend, void *connection, int screen) +_best_depth_get(void *connection, int screen) { if (!connection) return 0; - if (backend == EVAS_ENGINE_INFO_SOFTWARE_X11_BACKEND_XLIB) - return DefaultDepth((Display *)connection, screen); - return 0; + return DefaultDepth((Display *)connection, screen); } static void @@ -235,9 +228,6 @@ eng_output_setup(void *engine, void *in, unsigned int w, unsigned int h) static int try_swapbuf = -1; char *s; - if (info->info.backend != EVAS_ENGINE_INFO_SOFTWARE_X11_BACKEND_XLIB) - return NULL; - if (try_swapbuf == -1) { if ((s = getenv("EVAS_NO_DRI_SWAPBUF")) != NULL) @@ -285,9 +275,6 @@ eng_output_update(void *engine EINA_UNUSED, void *data, void *in, unsigned int w Render_Engine *re = data; Outbuf *ob = NULL; - if (info->info.backend != EVAS_ENGINE_INFO_SOFTWARE_X11_BACKEND_XLIB) - return 0; - _outbufs = eina_list_remove(_outbufs, re->generic.ob); if (re->generic.outbuf_free == evas_software_xlib_swapbuf_free) |