* src/smooth/ftgrays.c (gray_render_scanline): Fix bug which caused bad rendering of thin lines (less than one pixel thick).
diff --git a/ChangeLog b/ChangeLog
index d8a4917..131d9e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-27 Giuliano Pochini <pochini@shiny.it>
+
+ * src/smooth/ftgrays.c (gray_render_scanline): Fix bug which caused
+ bad rendering of thin lines (less than one pixel thick).
+
2002-01-25 Werner Lemberg <wl@gnu.org>
* src/cff/cffdrivr.c (cff_get_name_index): Make last patch work
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 55da7c3..e6d361b 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -553,7 +553,7 @@
if ( ex1 != ex2 )
{
- p = ONE_PIXEL * ( y2 - y1 );
+ p = ONE_PIXEL * ( y2 - y1 + delta );
lift = p / dx;
rem = p % dx;
if ( rem < 0 )