Enlightenment CVS committal Author : cedric Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/software_generic Modified Files: evas_engine.c Log Message: Use directly Image_Entry when possible. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/engines/software_generic/evas_engine.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- evas_engine.c 3 Jun 2008 09:09:37 -0000 1.22 +++ evas_engine.c 10 Jun 2008 09:22:27 -0000 1.23 @@ -332,14 +332,14 @@ static int eng_image_alpha_get(void *data, void *image) { - RGBA_Image *im; + Image_Entry *im; if (!image) return 1; im = image; - switch (im->cache_entry.space) + switch (im->space) { case EVAS_COLORSPACE_ARGB8888: - if (im->cache_entry.flags.alpha) return 1; + if (im->flags.alpha) return 1; default: break; } @@ -349,11 +349,11 @@ static int eng_image_colorspace_get(void *data, void *image) { - RGBA_Image *im; + Image_Entry *im; if (!image) return EVAS_COLORSPACE_ARGB8888; im = image; - return im->cache_entry.space; + return im->space; } static void * @@ -411,11 +411,11 @@ static void eng_image_colorspace_set(void *data, void *image, int cspace) { - RGBA_Image *im; + Image_Entry *im; if (!image) return; im = image; - evas_cache_image_colorspace(&im->cache_entry, cspace); + evas_cache_image_colorspace(im, cspace); } static void @@ -457,17 +457,17 @@ static void eng_image_size_get(void *data, void *image, int *w, int *h) { - RGBA_Image *im; + Image_Entry *im; im = image; - if (w) *w = im->cache_entry.w; - if (h) *h = im->cache_entry.h; + if (w) *w = im->w; + if (h) *h = im->h; } static void * eng_image_size_set(void *data, void *image, int w, int h) { - RGBA_Image *im; + Image_Entry *im; im = image; return evas_cache_image_size_set(image, w, h); @@ -476,11 +476,10 @@ static void * eng_image_dirty_region(void *data, void *image, int x, int y, int w, int h) { - RGBA_Image* im = image; + Image_Entry *im = image; if (!image) return NULL; - im = (RGBA_Image *) evas_cache_image_dirty(&im->cache_entry, x, y, w, h); - return im; + return evas_cache_image_dirty(im, x, y, w, h); } static void * ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs