updated the "smooth" anti-aliaser. By increasing the number

of segments used to decompose a bezier curve, we get rid
of the "fuzz-fuzz" factor.

it's also faster than the standard renderer after tweaking.
Note that it isn't completed yet..
This commit is contained in:
David Turner 2000-03-17 12:47:49 +00:00
parent fbf3ce2890
commit 137c88880d
1 changed files with 4 additions and 2 deletions

View File

@ -79,7 +79,7 @@
#endif
#define PIXEL_BITS 7
#define PIXEL_BITS 8
#define ONE_PIXEL (1L << PIXEL_BITS)
#define PIXEL_MASK (-1L << PIXEL_BITS)
#define TRUNC(x) ((x) >> PIXEL_BITS)
@ -479,7 +479,7 @@ int render_conic( RAS_ARG_ FT_Vector* control, FT_Vector* to )
if (dx < dy) dx = dy;
level = 1;
dx = dx/32;
dx = dx/16;
while ( dx > 0 )
{
dx >>= 1;
@ -573,6 +573,8 @@ int render_cubic( RAS_ARG_ FT_Vector* control1,
db = dx;
level = 1;
da = da/16;
db = db/32;
while ( da > 0 || db > 0 )
{
da >>= 1;