summaryrefslogtreecommitdiff
path: root/src/lib/elm_win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elm_win.c')
-rw-r--r--src/lib/elm_win.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index f75c15bed..0a173689b 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -2928,15 +2928,17 @@ _window_layout_stack(Evas_Object *o, Evas_Object_Box_Data *p, void *data)
2928static Eina_Bool 2928static Eina_Bool
2929_accel_is_gl(void) 2929_accel_is_gl(void)
2930{ 2930{
2931 const char *env = NULL; 2931 const char *str;
2932 const char *str = NULL; 2932
2933 2933 str = _elm_config->accel;
2934 if (_elm_config->accel) str = _elm_config->accel; 2934 if (!_elm_config->accel_override)
2935 if (_elm_accel_preference) str = _elm_accel_preference; 2935 {
2936 if ((_elm_config->accel_override) && (_elm_config->accel)) 2936 const char *env = NULL;
2937 str = _elm_config->accel; 2937
2938 env = getenv("ELM_ACCEL"); 2938 env = getenv("ELM_ACCEL");
2939 if (env) str = env; 2939 if (env) str = env;
2940 else if (_elm_accel_preference) str = _elm_accel_preference;
2941 }
2940 if ((str) && 2942 if ((str) &&
2941 ((!strcasecmp(str, "gl")) || 2943 ((!strcasecmp(str, "gl")) ||
2942 (!strcasecmp(str, "opengl")) || 2944 (!strcasecmp(str, "opengl")) ||