Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/loaders/pmaps Modified Files: evas_image_load_pmaps.c Log Message: cedric's cache changes patch =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/loaders/pmaps/evas_image_load_pmaps.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- evas_image_load_pmaps.c 1 Mar 2008 15:27:20 -0000 1.1 +++ evas_image_load_pmaps.c 12 Apr 2008 00:32:29 -0000 1.2 @@ -80,16 +80,8 @@ return 0; } - if (!im->image) - im->image = evas_common_image_surface_new(im); - if (!im->image) - { - pmaps_buffer_close(&b); - return 0; - } - - im->image->w = b.w; - im->image->h = b.h; + im->cache_entry.w = b.w; + im->cache_entry.h = b.h; pmaps_buffer_close(&b); return 1; @@ -122,23 +114,14 @@ pixels = b.w * b.h; - if (!im->image) - im->image = evas_common_image_surface_new(im); - if (!im->image) - { - pmaps_buffer_close(&b); - return 0; - } - - evas_common_image_surface_alloc(im->image); - if (!im->image->data) + evas_cache_image_surface_alloc(&im->cache_entry, b.w, b.h); + if (!im->image.data) { - evas_common_image_surface_free(im->image); pmaps_buffer_close(&b); return 0; } - ptr = im->image->data; + ptr = im->image.data; if (b.type[1] != '4') { ------------------------------------------------------------------------- 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