Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


Modified Files:
        evas_imaging.c 


Log Message:


cedric's cache changes patch

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/imaging/evas_imaging.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- evas_imaging.c      14 Mar 2008 16:49:47 -0000      1.13
+++ evas_imaging.c      12 Apr 2008 00:32:25 -0000      1.14
@@ -24,7 +24,7 @@
    im = calloc(1, sizeof(Evas_Imaging_Image));
    if (!im)
      {
-        evas_cache_image_drop(image);
+        evas_cache_image_drop(&image->cache_entry);
        return NULL;
      }
    im->image = image;
@@ -35,7 +35,7 @@
 evas_imaging_image_free(Evas_Imaging_Image *im)
 {
    if (!im) return;
-   evas_cache_image_drop(im->image);
+   evas_cache_image_drop(&im->image->cache_entry);
    free(im);
 }
 
@@ -43,8 +43,8 @@
 evas_imaging_image_size_get(const Evas_Imaging_Image *im, int *w, int *h)
 {
    if (!im) return;
-   if (w) *w = im->image->image->w;
-   if (h) *h = im->image->image->h;
+   if (w) *w = im->image->cache_entry.w;
+   if (h) *h = im->image->cache_entry.h;
 }
 
 EAPI Evas_Bool



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to