ref: 137c88880d63ec9f78975af760db335dc4df95fa
parent: fbf3ce2890605f5fd78c357634f8bca08ebcfaf5
author: David Turner <[email protected]>
date: Fri Mar 17 07:47:49 EST 2000
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..
--- a/demos/src/ftgrays.c
+++ b/demos/src/ftgrays.c
@@ -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 @@
if (dx < dy) dx = dy;
level = 1;
- dx = dx/32;
+ dx = dx/16;
while ( dx > 0 )
{
dx >>= 1;
@@ -573,6 +573,8 @@
db = dx;
level = 1;
+ da = da/16;
+ db = db/32;
while ( da > 0 || db > 0 )
{
da >>= 1;