Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/cache


Modified Files:
        evas_cache_image.c 


Log Message:


fix cache accounting

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/cache/evas_cache_image.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- evas_cache_image.c  8 Aug 2007 23:41:31 -0000       1.2
+++ evas_cache_image.c  9 Aug 2007 12:21:21 -0000       1.3
@@ -222,7 +222,7 @@
 //   if (im->cache_key) printf("DROP %s -> ref = %i\n", im->cache_key, 
im->references);
    if ((im->flags & RGBA_IMAGE_IS_DIRTY) == RGBA_IMAGE_IS_DIRTY)
      {
-        cache->usage = cache->func.mem_size_get(im);
+        cache->usage -= cache->func.mem_size_get(im);
 //     if (im->cache_key) printf("IM-- %s, cache = %i\n", im->cache_key, 
cache->usage);
         cache->dirty = evas_object_list_remove(cache->dirty, im);
         if (cache->func.debug)



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to