Commit b71c6af028715b35e35be15488c81d3636c522f0

David Turner 2000-09-17T17:17:16

fixed minor bug in the smooth renderer which forced the span callback to be called with y == -1 and count == 0

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 442939f..ccf82a5 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -1320,7 +1320,7 @@
 
       if ( ras.span_y != y || count >= FT_MAX_GRAY_SPANS )
       {
-        if ( ras.render_span )
+        if ( ras.render_span && count > 0 )
           ras.render_span( ras.span_y, count, ras.gray_spans,
                            ras.render_span_data );
         /* ras.render_span( span->y, ras.gray_spans, count ); */