forked from enlightenment/efl
parent
3641dd1751
commit
4f202372c2
|
@ -1165,19 +1165,19 @@ evas_engine_directfb_font_hinting_can_hint(void *data, int hinting)
|
|||
return evas_common_hinting_available(hinting);
|
||||
}
|
||||
|
||||
int module_open(Evas_Module *em)
|
||||
EAPI int module_open(Evas_Module *em)
|
||||
{
|
||||
if (!em) return 0;
|
||||
em->functions = (void *)(&evas_engine_directfb_func);
|
||||
return 1;
|
||||
}
|
||||
|
||||
void module_close(void)
|
||||
EAPI void module_close(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Evas_Module_Api evas_modapi =
|
||||
EAPI Evas_Module_Api evas_modapi =
|
||||
{
|
||||
EVAS_MODULE_API_VERSION,
|
||||
EVAS_MODULE_TYPE_ENGINE,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include <string.h>
|
||||
|
||||
static Evas_Hash * images = NULL;
|
||||
static Evas_Object_List * cache = NULL;
|
||||
static Evas_List * cache = NULL;
|
||||
static int cache_size = 0;
|
||||
static int cache_usage = 0;
|
||||
|
||||
|
@ -659,7 +659,7 @@ _dfb_image_cache(RGBA_Image *im)
|
|||
|
||||
if (im->flags & RGBA_IMAGE_INDEXED) return;
|
||||
im->flags |= RGBA_IMAGE_INDEXED;
|
||||
cache = evas_object_list_prepend(cache, im);
|
||||
cache = evas_list_prepend(cache, im);
|
||||
ram = evas_common_image_ram_usage(im);
|
||||
cache_usage += ram;
|
||||
_dfb_image_flush_cache();
|
||||
|
@ -672,7 +672,7 @@ _dfb_image_uncache(RGBA_Image *im)
|
|||
|
||||
if (!(im->flags & RGBA_IMAGE_INDEXED)) return;
|
||||
im->flags &= ~RGBA_IMAGE_INDEXED;
|
||||
cache = evas_object_list_remove(cache, im);
|
||||
cache = evas_list_remove(cache, im);
|
||||
ram = evas_common_image_ram_usage(im);
|
||||
cache_usage -= ram;
|
||||
}
|
||||
|
@ -681,12 +681,12 @@ _dfb_image_uncache(RGBA_Image *im)
|
|||
static void
|
||||
_dfb_image_flush_cache(void)
|
||||
{
|
||||
Evas_Object_List *l, *l_next;
|
||||
Evas_List *l, *l_next;
|
||||
|
||||
if (!cache) return;
|
||||
if (cache_usage < cache_size) return;
|
||||
|
||||
for (l = cache->last; l;)
|
||||
for (l = evas_list_last(cache); l;)
|
||||
{
|
||||
RGBA_Image *im;
|
||||
|
||||
|
@ -772,7 +772,7 @@ _dfb_image_unstore(RGBA_Image *im)
|
|||
static RGBA_Image *
|
||||
_dfb_image_find(const char *filename, const char *key, DATA64 timestamp)
|
||||
{
|
||||
Evas_Object_List *l;
|
||||
Evas_List *l;
|
||||
RGBA_Image *im;
|
||||
char *str;
|
||||
int l1, l2, l3;
|
||||
|
|
Loading…
Reference in New Issue