Make the engine use an environment variable.
This commit is contained in:
parent
e497ce2104
commit
abb0d96f4f
@ -182,13 +182,21 @@ ecdb_create_main_gui(void)
|
||||
{
|
||||
Evas_Object *gui;
|
||||
Evas_Coord mw, mh;
|
||||
const char *scale;
|
||||
const char *scale, *engine;
|
||||
float scalef;
|
||||
|
||||
/* This would be wonderful, but its a bit glitchy
|
||||
em->main_win_ee = ecore_evas_gl_x11_new(0, 0, 0, 0, 255, 255);
|
||||
*/
|
||||
em->main_win_ee = ecore_evas_software_x11_new(0, 0, 0, 0, 255, 255);
|
||||
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);
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user