From 4afd7450ff563d0b106f4512a6f9dee3efaa5991 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 8 Apr 2019 15:02:47 +0900 Subject: [PATCH] evas map: disable anti_aliasing. We need a proper interface to toggle high-quality mapping, until that, we disable the anti_aliasing feature. Since adjecent polygons(such as textpath) shouldn't get this aa feature. --- src/lib/evas/common/evas_map_image.c | 6 ------ src/lib/evas/common/evas_map_image_internal_high.c | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lib/evas/common/evas_map_image.c b/src/lib/evas/common/evas_map_image.c index 369ea05..5036841 100644 --- a/src/lib/evas/common/evas_map_image.c +++ b/src/lib/evas/common/evas_map_image.c @@ -866,11 +866,7 @@ evas_common_map_rgba(RGBA_Image *src, RGBA_Image *dst, if (dc->anti_alias && smooth) { - //FIXME: we cannot apply anti_aliasing per polygons. - Eina_Bool aa = dc->anti_alias; - if (npoints > 4) dc->anti_alias = EINA_FALSE; cb = evas_common_map_rgba_internal_high; - if (npoints > 4) dc->anti_alias = aa; } else { @@ -899,8 +895,6 @@ evas_common_map_rgba_draw(RGBA_Image *src, RGBA_Image *dst, int clip_x, int clip //The best quaility requsted. if (anti_alias && smooth) { - //FIXME: we cannot apply anti_aliasing per polygons. - if (npoints > 4) anti_alias = EINA_FALSE; _evas_common_map_rgba_internal_high(src, dst, clip_x, clip_y, clip_w, clip_h, mul_col, render_op, 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 7efe5ff..f842c74 100644 --- a/src/lib/evas/common/evas_map_image_internal_high.c +++ b/src/lib/evas/common/evas_map_image_internal_high.c @@ -764,6 +764,9 @@ _evas_common_map_rgba_internal_high(RGBA_Image *src, RGBA_Image *dst, Eina_Bool dst_alpha = dst->cache_entry.flags.alpha; Eina_Bool col_blend = EINA_FALSE; //Necessary blending vertex color? + //FIXME: we cannot apply anti_aliasing per polygons. + anti_alias = EINA_FALSE; + /* Prepare points data. Convert to float, shift XY coordinates to match the sub-pixeling technique. -- 2.7.4