summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_map_image_internal_high.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-09-19 13:24:08 +0900
committerHermet Park <hermetpark@gmail.com>2019-09-19 13:30:21 +0900
commitaaa199e2d42ee90d9dd463d6b31a6873b07c0323 (patch)
tree820a190cd331e8b11a61f2227411ed1e1aa91cea /src/lib/evas/common/evas_map_image_internal_high.c
parent1f19af77804b4193e3b9285817b92348b77811f3 (diff)
evas map: disable the anti_aliasing code which can't be reached.
This anti-aliasing is a little buggy, should be improved. But just leaving to fix later when it's necessary.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_map_image_internal_high.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/evas/common/evas_map_image_internal_high.c b/src/lib/evas/common/evas_map_image_internal_high.c
index dfbbfbc1c5..3d23782f63 100644
--- a/src/lib/evas/common/evas_map_image_internal_high.c
+++ b/src/lib/evas/common/evas_map_image_internal_high.c
@@ -33,6 +33,8 @@ static float xa, xb, ua, va, ca[4];
33 b = tmp 33 b = tmp
34 34
35/************************** ANTI-ALIASING CODE ********************************/ 35/************************** ANTI-ALIASING CODE ********************************/
36#ifdef MAP_HIGH_ANTI_ALIASING
37
36static void 38static void
37_map_irregular_coverage_calc(AALine* spans, int eidx, int y, int diagonal, 39_map_irregular_coverage_calc(AALine* spans, int eidx, int y, int diagonal,
38 int edge_dist, Eina_Bool reverse) 40 int edge_dist, Eina_Bool reverse)
@@ -332,6 +334,7 @@ _map_aa_apply(AASpans *aa_spans, DATA32 *dst, int dw)
332 free(aa_spans->lines); 334 free(aa_spans->lines);
333 free(aa_spans); 335 free(aa_spans);
334} 336}
337#endif
335 338
336/************************** TEXTURE MAPPING CODE ******************************/ 339/************************** TEXTURE MAPPING CODE ******************************/
337static void 340static void
@@ -822,6 +825,8 @@ _evas_common_map_rgba_internal_high(RGBA_Image *src, RGBA_Image *dst,
822 825
823 //Setup Anti-Aliasing? 826 //Setup Anti-Aliasing?
824 AASpans *aa_spans = NULL; 827 AASpans *aa_spans = NULL;
828
829#ifdef MAP_HIGH_ANTI_ALIASING
825 if (anti_alias) 830 if (anti_alias)
826 { 831 {
827 //Adjust AA Y range 832 //Adjust AA Y range
@@ -837,6 +842,7 @@ _evas_common_map_rgba_internal_high(RGBA_Image *src, RGBA_Image *dst,
837 aa_spans = 842 aa_spans =
838 _map_aa_ready(dst->cache_entry.w, dst->cache_entry.h, ystart, yend); 843 _map_aa_ready(dst->cache_entry.w, dst->cache_entry.h, ystart, yend);
839 } 844 }
845#endif
840 846
841 /* 847 /*
842 1 polygon is consisted of 2 triangles, 4 polygons constructs 1 mesh. 848 1 polygon is consisted of 2 triangles, 4 polygons constructs 1 mesh.
@@ -900,7 +906,8 @@ _evas_common_map_rgba_internal_high(RGBA_Image *src, RGBA_Image *dst,
900 &poly, mul_col, aa_spans, 906 &poly, mul_col, aa_spans,
901 smooth, col_blend); 907 smooth, col_blend);
902 } 908 }
903 909#ifdef MAP_HIGH_ANTI_ALIASING
904 if (anti_alias) 910 if (anti_alias)
905 _map_aa_apply(aa_spans, dst->image.data, dst->cache_entry.w); 911 _map_aa_apply(aa_spans, dst->image.data, dst->cache_entry.w);
912#endif
906} 913}