From 14998310b556e3fa8454e00b2d2075b28e1a9ce3 Mon Sep 17 00:00:00 2001 From: raster Date: Sat, 19 Feb 2011 15:53:47 +0000 Subject: [PATCH] fix convert to a8. someone fixed this badly. fix right now. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@57163 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_convert_colorspace.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/engines/common/evas_convert_colorspace.c b/src/lib/engines/common/evas_convert_colorspace.c index 341d34a..fa5faec 100644 --- a/src/lib/engines/common/evas_convert_colorspace.c +++ b/src/lib/engines/common/evas_convert_colorspace.c @@ -50,7 +50,7 @@ static inline void * evas_common_convert_argb8888_to_a8(void *data, int w, int h, int stride, Eina_Bool has_alpha) { uint32_t *src, *end; - uint8_t *ret; + uint8_t *ret, *dst; src = data; end = src + (stride * h); @@ -62,8 +62,9 @@ evas_common_convert_argb8888_to_a8(void *data, int w, int h, int stride, Eina_Bo return memset(ret, 0xff, w * h); } - for ( ; src < end ; src++, ret++) - *ret = CONVERT_ARGB_8888_TO_A_8(*src); + dst = ret; + for ( ; src < end ; src++, dst++) + *dst = CONVERT_ARGB_8888_TO_A_8(*src); return ret; } -- 2.7.4