From 2b8c136ad9c161ce9aa7edd00f751a55754b90c5 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 4 Jun 2008 08:20:39 +0000 Subject: [PATCH] Fix a little bug with alpha flags not being correctly set. SVN revision: 34734 --- legacy/evas/src/lib/cache/evas_cache_image.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/lib/cache/evas_cache_image.c b/legacy/evas/src/lib/cache/evas_cache_image.c index 5daa01cfed..6d55084cb2 100644 --- a/legacy/evas/src/lib/cache/evas_cache_image.c +++ b/legacy/evas/src/lib/cache/evas_cache_image.c @@ -603,6 +603,7 @@ evas_cache_image_copied_data(Evas_Cache_Image *cache, int w, int h, DATA32 *imag im = _evas_cache_image_entry_new(cache, NULL, 0, NULL, NULL, NULL, NULL); if (!im) return NULL; + im->space = cspace; im->flags.alpha = alpha; @@ -679,11 +680,12 @@ evas_cache_image_size_set(Image_Entry *im, int w, int h) new = _evas_cache_image_entry_new(cache, NULL, 0, NULL, NULL, NULL, &error); if (!new) goto on_error; - _evas_cache_image_entry_surface_alloc(cache, new, w, h); - + new->flags.alpha = im->flags.alpha; new->space = im->space; new->load_opts = im->load_opts; + _evas_cache_image_entry_surface_alloc(cache, new, w, h); + error = cache->func.size_set(new, im, w, h); if (error != 0) goto on_error;