summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_scale_sample.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_scale_sample.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/evas/common/evas_scale_sample.c b/src/lib/evas/common/evas_scale_sample.c
index 86b02d8e68..c888aa7450 100644
--- a/src/lib/evas/common/evas_scale_sample.c
+++ b/src/lib/evas/common/evas_scale_sample.c
@@ -208,9 +208,13 @@ evas_common_scale_rgba_sample_draw(RGBA_Image *src, RGBA_Image *dst, int dst_cli
208 } 208 }
209 else 209 else
210 { 210 {
211 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, render_op);
212 if (mul_col != 0xffffffff) 211 if (mul_col != 0xffffffff)
213 func2 = evas_common_gfx_func_composite_pixel_color_span_get(src->cache_entry.flags.alpha, src->cache_entry.flags.alpha_sparse, mul_col, dst->cache_entry.flags.alpha, dst_clip_w, render_op); 212 {
213 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, render_op);
214 func2 = evas_common_gfx_func_composite_pixel_color_span_get(src->cache_entry.flags.alpha, src->cache_entry.flags.alpha_sparse, mul_col, dst->cache_entry.flags.alpha, dst_clip_w, EVAS_RENDER_COPY);
215 }
216 else
217 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, render_op);
214 } 218 }
215 219
216 if ((dst_region_w == src_region_w) && (dst_region_h == src_region_h)) 220 if ((dst_region_w == src_region_w) && (dst_region_h == src_region_h))
@@ -291,7 +295,8 @@ evas_common_scale_rgba_sample_draw(RGBA_Image *src, RGBA_Image *dst, int dst_cli
291 } 295 }
292 296
293 /* * blend here [clip_w *] buf -> dptr * */ 297 /* * blend here [clip_w *] buf -> dptr * */
294 if (mul_col != 0xffffffff) func2(buf, NULL, mul_col, buf, dst_clip_w); 298 if (mul_col != 0xffffffff)
299 func2(buf, NULL, mul_col, buf, dst_clip_w);
295 func(buf, mask, 0, dptr, dst_clip_w); 300 func(buf, mask, 0, dptr, dst_clip_w);
296 301
297 dptr += dst_w; 302 dptr += dst_w;