forked from enlightenment/efl
some debugging commented out. seems evas's caches work like a charm
SVN revision: 14920
This commit is contained in:
parent
2f81db8bb2
commit
0a61e33102
|
@ -303,6 +303,7 @@ evas_common_font_memory_load(const char *name, int size, const void *data, int d
|
|||
|
||||
fi = evas_common_font_int_memory_load(name, size, data, data_size);
|
||||
if (!fi) return NULL;
|
||||
// printf("LOAD FONT MEM %s %i\n", name, size);
|
||||
fn = calloc(1, sizeof(RGBA_Font));
|
||||
if (!fn) return NULL;
|
||||
fn->fonts = evas_list_append(fn->fonts, fi);
|
||||
|
@ -317,6 +318,7 @@ evas_common_font_load(const char *name, int size)
|
|||
|
||||
fi = evas_common_font_int_load(name, size);
|
||||
if (!fi) return NULL;
|
||||
// printf("LOAD FONT FILE %s %i\n", name, size);
|
||||
fn = calloc(1, sizeof(RGBA_Font));
|
||||
if (!fn) return NULL;
|
||||
fn->fonts = evas_list_append(fn->fonts, fi);
|
||||
|
|
|
@ -855,10 +855,12 @@ evas_common_load_image_from_file(const char *file, const char *key)
|
|||
im = evas_common_image_find(file, key, 0);
|
||||
if (im)
|
||||
{
|
||||
// printf("CACHED %s %s found\n", file, key);
|
||||
evas_common_image_ref(im);
|
||||
// if (real_file) free(real_file);
|
||||
return im;
|
||||
}
|
||||
// printf("LOAD IMAGE %s %s\n", file, key);
|
||||
im = evas_common_image_new();
|
||||
if (!im)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue