summaryrefslogtreecommitdiff
path: root/src/smooth
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2000-09-17 17:17:16 +0000
committerDavid Turner <david@freetype.org>2000-09-17 17:17:16 +0000
commitb71c6af028715b35e35be15488c81d3636c522f0 (patch)
tree60043f64683d05aa4055db694a7e6d04977c2c5d /src/smooth
parent426984e47b64dcd1ffa48ae922e05a3f4cef8d36 (diff)
fixed minor bug in the smooth renderer which forced
the span callback to be called with y == -1 and count == 0
Diffstat (limited to 'src/smooth')
-rw-r--r--src/smooth/ftgrays.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 442939f0..ccf82a50 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 ); */