From 5e99e926197fa72b1d9b8ac450469275b1b3dd8b Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 28 Jan 2002 05:04:22 +0000 Subject: [PATCH] * src/smooth/ftgrays.c (gray_render_scanline): Fix bug which caused bad rendering of thin lines (less than one pixel thick). --- ChangeLog | 5 +++++ src/smooth/ftgrays.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d8a4917b9..131d9e45e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-01-27 Giuliano Pochini + + * 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 * 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 55da7c340..e6d361b81 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 )