oooh - lots of cache misses due to new load opts - if load opts have "0"

members cache was being missed. fixed. :)


SVN revision: 26339
This commit is contained in:
Carsten Haitzler 2006-10-03 23:49:03 +00:00
parent 7896dff6ed
commit 64ab8b381d
1 changed files with 5 additions and 1 deletions

View File

@ -426,7 +426,11 @@ evas_common_image_find(const char *file, const char *key, DATA64 timestamp, RGBA
if ((!file) && (!key)) return NULL;
if (!file) return NULL;
if (!lo)
if ((!lo) ||
((lo) &&
(lo->scale_down_by == 0) &&
(lo->dpi == 0.0) &&
((lo->w == 0) || (lo->h == 0))))
{
if (key)
snprintf(buf, sizeof(buf), "%s//://%s", file, key);