From: Jean-Philippe Andre Date: Mon, 9 Feb 2015 12:16:06 +0000 (+0900) Subject: Evas masking: Fix some garbage pixels with the SW engine X-Git-Tag: v1.14.0-alpha1~561 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c394479afe80e8edf2cc747f22acff0014406ed1;p=platform%2Fupstream%2Fefl.git Evas masking: Fix some garbage pixels with the SW engine A rare case of garbage data would happen if smooth scaling was called with a mask and 1:1 scaling. Use the proper render_op to COPY for the first pass. @fix --- diff --git a/src/lib/evas/common/evas_scale_sample.c b/src/lib/evas/common/evas_scale_sample.c index 5536115..940ccba 100644 --- a/src/lib/evas/common/evas_scale_sample.c +++ b/src/lib/evas/common/evas_scale_sample.c @@ -479,7 +479,7 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst, { func = evas_common_gfx_func_composite_pixel_mask_span_get(src->cache_entry.flags.alpha, src->cache_entry.flags.alpha_sparse, dst->cache_entry.flags.alpha, dst_clip_w, dc->render_op); if (dc->mul.use) - func2 = evas_common_gfx_func_composite_pixel_color_span_get(src->cache_entry.flags.alpha, src->cache_entry.flags.alpha_sparse, dc->mul.col, dst->cache_entry.flags.alpha, dst_clip_w, dc->render_op); + func2 = evas_common_gfx_func_composite_pixel_color_span_get(src->cache_entry.flags.alpha, src->cache_entry.flags.alpha_sparse, dc->mul.col, dst->cache_entry.flags.alpha, dst_clip_w, EVAS_RENDER_COPY); } if ((dst_region_w == src_region_w) && (dst_region_h == src_region_h))