support ELM_ENGINE environemnt set for gl

gl backened is often used for test.
Until resolving all values reset by elm_config_profile_set().
we added this kind of workaround code.
This commit is contained in:
ChunEon Park 2014-02-07 16:58:18 +09:00
parent 612cf5f769
commit a6c73fcbf8
1 changed files with 6 additions and 0 deletions

View File

@ -490,6 +490,12 @@ elm_setup()
char *scale = getenv("ELM_SCALE");
if (scale) elm_config_scale_set(atof(scale));
/* Recover the current engine since it will be reset by
elm_config_profiel_set() */
char *engine = getenv("ELM_ENGINE");
if (engine && !strncmp(engine, "gl", strlen("gl")))
elm_config_preferred_engine_set("opengl_x11");
elm_config_scroll_bounce_enabled_set(EINA_FALSE);
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);