Make the engine use an environment variable.

This commit is contained in:
Jaime Thomas 2009-01-17 01:36:09 +00:00
parent e497ce2104
commit abb0d96f4f

View File

@ -182,12 +182,20 @@ ecdb_create_main_gui(void)
{ {
Evas_Object *gui; Evas_Object *gui;
Evas_Coord mw, mh; Evas_Coord mw, mh;
const char *scale; const char *scale, *engine;
float scalef; float scalef;
/* This would be wonderful, but its a bit glitchy engine = getenv("ECDB_ENGINE");
if (engine)
{
if (!strcmp(engine, "gl"))
em->main_win_ee = ecore_evas_gl_x11_new(0, 0, 0, 0, 255, 255); em->main_win_ee = ecore_evas_gl_x11_new(0, 0, 0, 0, 255, 255);
*/ else if (!strcmp(engine, "xr"))
em->main_win_ee = ecore_evas_xrender_x11_new(0, 0, 0, 0, 255, 255);
else if (!strcmp(engine, "x11"))
em->main_win_ee = ecore_evas_software_x11_new(0, 0, 0, 0, 255, 255);
}
else
em->main_win_ee = ecore_evas_software_x11_new(0, 0, 0, 0, 255, 255); em->main_win_ee = ecore_evas_software_x11_new(0, 0, 0, 0, 255, 255);
if (!em->main_win_ee) if (!em->main_win_ee)