summaryrefslogtreecommitdiff
path: root/src/lib/evas/cache2
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@profusion.mobi>2013-01-09 21:36:03 +0000
committerUlisses Furquim <ulisses@profusion.mobi>2013-01-09 21:36:03 +0000
commitc6f907a9f4ac8e3cd3581f8f24384d523241d866 (patch)
tree0afc66b0bb71fe9056abb44febda634e2c679772 /src/lib/evas/cache2
parent1c1d9f4161076a26dde2492eebb86db41618c114 (diff)
efl/cache: Set loaded flag properly with loaded pixels
Patch by: Paulo Alcantara <pcacjr@profusion.mobi> SVN revision: 82481
Diffstat (limited to 'src/lib/evas/cache2')
-rw-r--r--src/lib/evas/cache2/evas_cache2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/cache2/evas_cache2.c b/src/lib/evas/cache2/evas_cache2.c
index 46cca8e169..3eaf0b3c0d 100644
--- a/src/lib/evas/cache2/evas_cache2.c
+++ b/src/lib/evas/cache2/evas_cache2.c
@@ -419,13 +419,13 @@ evas_cache2_image_data(Evas_Cache2 *cache, unsigned int w, unsigned int h, DATA3
419 im->w = w; 419 im->w = w;
420 im->h = h; 420 im->h = h;
421 im->flags.alpha = alpha; 421 im->flags.alpha = alpha;
422 im->flags.loaded = 1;
423 if (cache->func.data(im, w, h, image_data, alpha, cspace) != 0) 422 if (cache->func.data(im, w, h, image_data, alpha, cspace) != 0)
424 { 423 {
425 _evas_cache_image_entry_delete(cache, im); 424 _evas_cache_image_entry_delete(cache, im);
426 return NULL; 425 return NULL;
427 } 426 }
428 im->references = 1; 427 im->references = 1;
428 im->flags.loaded = EINA_TRUE;
429 if (cache->func.debug) cache->func.debug("data", im); 429 if (cache->func.debug) cache->func.debug("data", im);
430 return im; 430 return im;
431} 431}
@@ -470,6 +470,7 @@ evas_cache2_image_size_set(Image_Entry *im, unsigned int w, unsigned h)
470 if (error != 0) goto on_error; 470 if (error != 0) goto on_error;
471 471
472 im2->references = 1; 472 im2->references = 1;
473 im2->flags.loaded = EINA_TRUE;
473 474
474 evas_cache2_image_close(im); 475 evas_cache2_image_close(im);
475 return im2; 476 return im2;