Make the engine use an environment variable.

This commit is contained in:
Jaime Thomas 2009-01-17 01:36:09 +00:00
parent 465756bb63
commit 65736372aa
1 changed files with 13 additions and 5 deletions

View File

@ -182,13 +182,21 @@ 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");
em->main_win_ee = ecore_evas_gl_x11_new(0, 0, 0, 0, 255, 255); if (engine)
*/ {
em->main_win_ee = ecore_evas_software_x11_new(0, 0, 0, 0, 255, 255); if (!strcmp(engine, "gl"))
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);
if (!em->main_win_ee) if (!em->main_win_ee)
{ {