parent
4767c70921
commit
eb6de9e2a4
|
@ -20,19 +20,19 @@ e_canvas_add(Ecore_Evas *ee)
|
||||||
e_path_evas_append(path_fonts, e);
|
e_path_evas_append(path_fonts, e);
|
||||||
if (e_config->font_hinting == 0)
|
if (e_config->font_hinting == 0)
|
||||||
{
|
{
|
||||||
if (evas_font_hinting_can_hint(e, EVAS_FONT_HINTING_BYTECODE))
|
if (evas_font_hinting_can_hint(e, EVAS_FONT_HINTING_BYTECODE))
|
||||||
evas_font_hinting_set(e, EVAS_FONT_HINTING_BYTECODE);
|
evas_font_hinting_set(e, EVAS_FONT_HINTING_BYTECODE);
|
||||||
else if (evas_font_hinting_can_hint(e, EVAS_FONT_HINTING_AUTO))
|
else if (evas_font_hinting_can_hint(e, EVAS_FONT_HINTING_AUTO))
|
||||||
evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO);
|
evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO);
|
||||||
else
|
else
|
||||||
evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);
|
evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);
|
||||||
}
|
}
|
||||||
else if (e_config->font_hinting == 1)
|
else if (e_config->font_hinting == 1)
|
||||||
{
|
{
|
||||||
if (evas_font_hinting_can_hint(e, EVAS_FONT_HINTING_AUTO))
|
if (evas_font_hinting_can_hint(e, EVAS_FONT_HINTING_AUTO))
|
||||||
evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO);
|
evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO);
|
||||||
else
|
else
|
||||||
evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);
|
evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);
|
||||||
}
|
}
|
||||||
else if (e_config->font_hinting == 2)
|
else if (e_config->font_hinting == 2)
|
||||||
evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);
|
evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);
|
||||||
|
@ -52,25 +52,25 @@ e_canvas_recache(void)
|
||||||
|
|
||||||
EINA_LIST_FOREACH(_e_canvases, l, ee)
|
EINA_LIST_FOREACH(_e_canvases, l, ee)
|
||||||
{
|
{
|
||||||
Evas *e;
|
Evas *e;
|
||||||
|
|
||||||
e = ecore_evas_get(ee);
|
e = ecore_evas_get(ee);
|
||||||
evas_image_cache_set(e, e_config->image_cache * 1024);
|
evas_image_cache_set(e, e_config->image_cache * 1024);
|
||||||
evas_font_cache_set(e, e_config->font_cache * 1024);
|
evas_font_cache_set(e, e_config->font_cache * 1024);
|
||||||
}
|
}
|
||||||
edje_file_cache_set(e_config->edje_cache);
|
edje_file_cache_set(e_config->edje_cache);
|
||||||
edje_collection_cache_set(e_config->edje_collection_cache);
|
edje_collection_cache_set(e_config->edje_collection_cache);
|
||||||
if (_e_canvas_cache_flush_poller)
|
if (_e_canvas_cache_flush_poller)
|
||||||
{
|
{
|
||||||
ecore_poller_del(_e_canvas_cache_flush_poller);
|
ecore_poller_del(_e_canvas_cache_flush_poller);
|
||||||
_e_canvas_cache_flush_poller = NULL;
|
_e_canvas_cache_flush_poller = NULL;
|
||||||
}
|
}
|
||||||
if (e_config->cache_flush_poll_interval > 0)
|
if (e_config->cache_flush_poll_interval > 0)
|
||||||
{
|
{
|
||||||
_e_canvas_cache_flush_poller =
|
_e_canvas_cache_flush_poller =
|
||||||
ecore_poller_add(ECORE_POLLER_CORE,
|
ecore_poller_add(ECORE_POLLER_CORE,
|
||||||
e_config->cache_flush_poll_interval,
|
e_config->cache_flush_poll_interval,
|
||||||
_e_canvas_cb_flush, NULL);
|
_e_canvas_cb_flush, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,11 +82,11 @@ e_canvas_cache_flush(void)
|
||||||
|
|
||||||
EINA_LIST_FOREACH(_e_canvases, l, ee)
|
EINA_LIST_FOREACH(_e_canvases, l, ee)
|
||||||
{
|
{
|
||||||
Evas *e;
|
Evas *e;
|
||||||
|
|
||||||
e = ecore_evas_get(ee);
|
e = ecore_evas_get(ee);
|
||||||
evas_image_cache_flush(e);
|
evas_image_cache_flush(e);
|
||||||
evas_font_cache_flush(e);
|
evas_font_cache_flush(e);
|
||||||
}
|
}
|
||||||
edje_file_cache_flush();
|
edje_file_cache_flush();
|
||||||
edje_collection_cache_flush();
|
edje_collection_cache_flush();
|
||||||
|
@ -100,10 +100,10 @@ e_canvas_cache_reload(void)
|
||||||
|
|
||||||
EINA_LIST_FOREACH(_e_canvases, l, ee)
|
EINA_LIST_FOREACH(_e_canvases, l, ee)
|
||||||
{
|
{
|
||||||
Evas *e;
|
Evas *e;
|
||||||
|
|
||||||
e = ecore_evas_get(ee);
|
e = ecore_evas_get(ee);
|
||||||
evas_image_cache_reload(e);
|
evas_image_cache_reload(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,10 +115,10 @@ e_canvas_idle_flush(void)
|
||||||
|
|
||||||
EINA_LIST_FOREACH(_e_canvases, l, ee)
|
EINA_LIST_FOREACH(_e_canvases, l, ee)
|
||||||
{
|
{
|
||||||
Evas *e;
|
Evas *e;
|
||||||
|
|
||||||
e = ecore_evas_get(ee);
|
e = ecore_evas_get(ee);
|
||||||
evas_render_idle_flush(e);
|
evas_render_idle_flush(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,21 +130,21 @@ e_canvas_rehint(void)
|
||||||
|
|
||||||
EINA_LIST_FOREACH(_e_canvases, l, ee)
|
EINA_LIST_FOREACH(_e_canvases, l, ee)
|
||||||
{
|
{
|
||||||
Evas *e;
|
Evas *e;
|
||||||
|
|
||||||
e = ecore_evas_get(ee);
|
e = ecore_evas_get(ee);
|
||||||
if (e_config->font_hinting == 0)
|
if (e_config->font_hinting == 0)
|
||||||
evas_font_hinting_set(e, EVAS_FONT_HINTING_BYTECODE);
|
evas_font_hinting_set(e, EVAS_FONT_HINTING_BYTECODE);
|
||||||
else if (e_config->font_hinting == 1)
|
else if (e_config->font_hinting == 1)
|
||||||
evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO);
|
evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO);
|
||||||
else if (e_config->font_hinting == 2)
|
else if (e_config->font_hinting == 2)
|
||||||
evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);
|
evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Ecore_Evas *
|
EAPI Ecore_Evas *
|
||||||
e_canvas_new(Ecore_X_Window win, int x, int y, int w, int h,
|
e_canvas_new(Ecore_X_Window win, int x, int y, int w, int h,
|
||||||
int direct_resize, int override, Ecore_X_Window *win_ret)
|
int direct_resize, int override, Ecore_X_Window *win_ret)
|
||||||
{
|
{
|
||||||
Ecore_Evas *ee;
|
Ecore_Evas *ee;
|
||||||
|
|
||||||
|
@ -167,3 +167,4 @@ _e_canvas_cb_flush(void *data __UNUSED__)
|
||||||
e_canvas_cache_flush();
|
e_canvas_cache_flush();
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_RENEW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue