shithub: freetype+ttf2subf

Download patch

ref: e274290d71d952f1d6c227710b8bf9f042b696e7
parent: 43071cb7f2439525f3e55dadcc3a644d86fd0535
author: Werner Lemberg <[email protected]>
date: Mon Jan 28 00:04:22 EST 2002

* src/smooth/ftgrays.c (gray_render_scanline): Fix bug which caused
bad rendering of thin lines (less than one pixel thick).

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-27  Giuliano Pochini  <[email protected]>
+
+	* 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  <[email protected]>
 
 	* src/cff/cffdrivr.c (cff_get_name_index): Make last patch work
--- 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 )