Make the engine use an environment variable.
This commit is contained in:
parent
465756bb63
commit
65736372aa
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user