forked from enlightenment/efl
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.
This commit is contained in:
parent
d5551bdda3
commit
dc1e1a652c
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue