Enlightenment CVS committal Author : cedric Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/software_16_sdl Modified Files: evas_engine.c Log Message: Fix common 16bpp engine use of alpha. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/engines/software_16_sdl/evas_engine.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- evas_engine.c 28 May 2008 19:27:41 -0000 1.2 +++ evas_engine.c 3 Jun 2008 14:45:39 -0000 1.3 @@ -108,7 +108,7 @@ Soft16_Image *im; im = (Soft16_Image *) evas_cache_image_empty(evas_common_soft16_image_cache_get()); - im->flags.have_alpha = 0; + im->cache_entry.flags.alpha = 0; evas_cache_image_surface_alloc(&im->cache_entry, w, h); re->tmp_out = im; @@ -570,7 +570,7 @@ if (!eim) return 1; im = (Soft16_Image *) eim->cache_entry.src; - if (im->flags.have_alpha) return 1; + if (im->cache_entry.flags.alpha) return 1; return 0; } @@ -741,14 +741,14 @@ im = (Soft16_Image *) eim->cache_entry.src; - if (im->flags.have_alpha == has_alpha) return eim; + if (im->cache_entry.flags.alpha == has_alpha) return eim; eim = (SDL_Engine_Image_Entry *) evas_cache_engine_image_alone(&eim->cache_entry, NULL); im = (Soft16_Image *) eim->cache_entry.src; - im->flags.have_alpha = has_alpha; + im->cache_entry.flags.alpha = has_alpha; eim = (SDL_Engine_Image_Entry *) evas_cache_engine_image_dirty(&eim->cache_entry, 0, 0, eim->cache_entry.w, eim->cache_entry.h); return eim; @@ -1193,7 +1193,7 @@ /* im->flags.have_alpha = 1; */ im->alpha = NULL; im->flags.free_alpha = 0; - im->flags.have_alpha = 0; + im->cache_entry.flags.alpha = 0; dst->src->w = sdl->w; dst->src->h = sdl->h; ------------------------------------------------------------------------- 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