Enlightenment CVS committal Author : cedric Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/common_16 Modified Files: evas_soft16_main.c Log Message: * Make RGBA_IMAGE_HAS_ALPHA and RGBA_IMAGE_ALPHA_SPARSE part of Image_Entry flag structure. This fix a bug with 16 bpp software engine. * Change image loader module API to take any Image_Entry. Same goes for evas_common_image_premul and evas_common_image_set_alpha_sparse. * Use new eet API: eet_data_image_read_to_surface. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/engines/common_16/evas_soft16_main.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- evas_soft16_main.c 14 May 2008 16:38:36 -0000 1.2 +++ evas_soft16_main.c 3 Jun 2008 09:09:35 -0000 1.3 @@ -8,6 +8,7 @@ static int _evas_common_soft16_image_surface_alloc(Image_Entry *ie, int w, int h); static void _evas_common_soft16_image_surface_delete(Image_Entry *ie); +static DATA32 *_evas_common_soft16_image_surface_pixels(Image_Entry *ie); static int _evas_common_load_soft16_image_from_file(Image_Entry *ie); static void _evas_common_soft16_image_unload(Image_Entry *ie); @@ -36,6 +37,7 @@ _evas_common_soft16_image_delete, _evas_common_soft16_image_surface_alloc, _evas_common_soft16_image_surface_delete, + _evas_common_soft16_image_surface_pixels, _evas_common_load_soft16_image_from_file, _evas_common_soft16_image_unload, _evas_common_soft16_image_dirty_region, @@ -149,6 +151,14 @@ im->flags.free_alpha = 0; } +static DATA32 * +_evas_common_soft16_image_surface_pixels(Image_Entry *ie) +{ + abort(); + + return NULL; +} + static int _evas_common_load_soft16_image_from_file(Image_Entry *ie) { @@ -162,7 +172,7 @@ sim->cache_entry.w = sim->source->cache_entry.w; sim->cache_entry.h = sim->source->cache_entry.h; - sim->flags.have_alpha = !!(im->flags & RGBA_IMAGE_HAS_ALPHA); + sim->flags.have_alpha = im->cache_entry.flags.alpha; if (sim->stride < 0) sim->stride = _calc_stride(sim->cache_entry.w); return 0; ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs