summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_polygon_main.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-11-13 11:27:50 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-11-13 12:20:57 +0900
commit05aee3e3706867605d3b1bb84c3a70ccafba0673 (patch)
treecf2ee2630803ac7cadacd2a51c987e65d9d69426 /src/lib/evas/common/evas_polygon_main.c
parent35beedd3d7e84723fb5ce7aca7102b594edece66 (diff)
Evas: Don't pass whole RGBA_Image to low-level render functions
Idea originated from Cedric the b0rker. This is a big fat search-and-replace commit. This commit also introduces space changes... Sorry for the mix. NOTE: This commit may have one side effect as there was some very dubious code chaning the dst image's alpha flag in the Gfx get functions. Logically this didn't make sense (at draw time the dst alpha should already be well defined), so it should be safe.
Diffstat (limited to 'src/lib/evas/common/evas_polygon_main.c')
-rw-r--r--src/lib/evas/common/evas_polygon_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/common/evas_polygon_main.c b/src/lib/evas/common/evas_polygon_main.c
index 2d14e8d9aa..db56cdb61e 100644
--- a/src/lib/evas/common/evas_polygon_main.c
+++ b/src/lib/evas/common/evas_polygon_main.c
@@ -279,7 +279,7 @@ evas_common_polygon_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Po
279 free(point); 279 free(point);
280 free(sorted_index); 280 free(sorted_index);
281 281
282 func = evas_common_gfx_func_composite_color_span_get(dc->col.col, dst, 1, dc->render_op); 282 func = evas_common_gfx_func_composite_color_span_get(dc->col.col, dst->cache_entry.flags.alpha, 1, dc->render_op);
283 if (spans) 283 if (spans)
284 { 284 {
285 RGBA_Span *span; 285 RGBA_Span *span;
@@ -435,7 +435,7 @@ evas_common_polygon_rgba_draw(RGBA_Image *dst, int ext_x, int ext_y, int ext_w,
435 free(point); 435 free(point);
436 free(sorted_index); 436 free(sorted_index);
437 437
438 func = evas_common_gfx_func_composite_color_span_get(col, dst, 1, render_op); 438 func = evas_common_gfx_func_composite_color_span_get(col, dst->cache_entry.flags.alpha, 1, render_op);
439 if (spans) 439 if (spans)
440 { 440 {
441 RGBA_Span *span; 441 RGBA_Span *span;