summaryrefslogtreecommitdiff
path: root/src/lib/evas/common
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-02-09 21:16:06 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-02-10 11:39:24 +0900
commitc394479afe80e8edf2cc747f22acff0014406ed1 (patch)
treeac574cb69febcc6e5d260f217dc2ecedfe3c0c7d /src/lib/evas/common
parent6f3f92b72a2e600718eadead399346ede47de199 (diff)
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
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r--src/lib/evas/common/evas_scale_sample.c2
1 files changed, 1 insertions, 1 deletions
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,
479 { 479 {
480 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); 480 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);
481 if (dc->mul.use) 481 if (dc->mul.use)
482 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); 482 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);
483 } 483 }
484 484
485 if ((dst_region_w == src_region_w) && (dst_region_h == src_region_h)) 485 if ((dst_region_w == src_region_w) && (dst_region_h == src_region_h))