Fix a bug caused by duplicated entry in the activ and dirty cache list.

SVN revision: 34302
This commit is contained in:
Cedric BAIL 2008-04-17 15:30:03 +00:00
parent 390111df9b
commit 47c7f1aa08
1 changed files with 2 additions and 6 deletions

View File

@ -183,7 +183,6 @@ _evas_cache_image_entry_new(Evas_Cache_Image *cache,
if (lo)
ie->load_opts = *lo;
ie->references = 0;
if (file)
{
*error = cache->func.constructor(ie);
@ -488,11 +487,7 @@ evas_cache_image_dirty(Image_Entry *im, int x, int y, int w, int h)
cache = im->cache;
if (!(im->flags.dirty))
{
if (im->references == 1)
{
_evas_cache_image_remove_activ(cache, im);
im_dirty = im;
}
if (im->references == 1) im_dirty = im;
else
{
int error;
@ -513,6 +508,7 @@ evas_cache_image_dirty(Image_Entry *im, int x, int y, int w, int h)
evas_cache_image_drop(im);
}
_evas_cache_image_remove_activ(cache, im_dirty);
_evas_cache_image_make_dirty(cache, im_dirty);
}