some debugging commented out. seems evas's caches work like a charm

SVN revision: 14920
This commit is contained in:
Carsten Haitzler 2005-05-23 06:29:40 +00:00
parent 2f81db8bb2
commit 0a61e33102
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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)
{