{
Ector_Surface *ector;
const char *ector_backend;
+
ector_backend = getenv("ECTOR_BACKEND");
- if (ector_backend && !strcasecmp(ector_backend, "default"))
+ if (ector_backend && !strcasecmp(ector_backend, "cairo"))
{
- ector = eo_add(ECTOR_SOFTWARE_SURFACE_CLASS, NULL);
- use_cairo = EINA_FALSE;
+ ector = eo_add(ECTOR_CAIRO_SOFTWARE_SURFACE_CLASS, NULL);
+ use_cairo = EINA_TRUE;
}
else
{
- ector = eo_add(ECTOR_CAIRO_SOFTWARE_SURFACE_CLASS, NULL);
- use_cairo = EINA_TRUE;
+ ector = eo_add(ECTOR_SOFTWARE_SURFACE_CLASS, NULL);
+ use_cairo = EINA_FALSE;
}
return ector;
}
Ector_Surface *ector;
const char *ector_backend;
ector_backend = getenv("ECTOR_BACKEND");
- if (ector_backend && !strcasecmp(ector_backend, "default"))
+ if (ector_backend && !strcasecmp(ector_backend, "cairo"))
{
- ector = eo_add(ECTOR_SOFTWARE_SURFACE_CLASS, NULL);
- use_cairo = EINA_FALSE;
+ ector = eo_add(ECTOR_CAIRO_SOFTWARE_SURFACE_CLASS, NULL);
+ use_cairo = EINA_TRUE;
}
else
{
- ector = eo_add(ECTOR_CAIRO_SOFTWARE_SURFACE_CLASS, NULL);
- use_cairo = EINA_TRUE;
+ ector = eo_add(ECTOR_SOFTWARE_SURFACE_CLASS, NULL);
+ use_cairo = EINA_FALSE;
}
return ector;
}