From e419f48b40a746465a6c8e1d446b407b8677bfed Mon Sep 17 00:00:00 2001 From: Graham Asher Date: Thu, 24 Jun 2010 12:50:46 +0200 Subject: [PATCH] * src/smooth/ftgrays.c (gray_render_cubic): Fix algorithm. The previous version was too aggressive, as demonstrated in http://lists.gnu.org/archive/html/freetype-devel/2010-06/msg00020.html. --- ChangeLog | 6 ++++++ src/smooth/ftgrays.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0b62594bc..f5cdb6e1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-06-24 Graham Asher + + * src/smooth/ftgrays.c (gray_render_cubic): Fix algorithm. + The previous version was too aggressive, as demonstrated in + http://lists.gnu.org/archive/html/freetype-devel/2010-06/msg00020.html. + 2010-06-24 Werner Lemberg */*: Use module specific error names where appropriate. diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index 0afb37e6f..3c2051afe 100644 --- a/src/smooth/ftgrays.c +++ b/src/smooth/ftgrays.c @@ -1029,7 +1029,7 @@ dx /= ras.cubic_level; while ( dx > 0 ) { - dx >>= 3; + dx >>= 2; level++; }