From 4564ca8a2ca1c9daa211117b9cd4c05f7fe344d0 Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 3 Oct 2000 19:22:52 +0000 Subject: [PATCH] small fix: when in direct rendering mode, the target bitmap buffer is not checked.. --- src/smooth/ftgrays.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index 985561b51..1205c676a 100644 --- a/src/smooth/ftgrays.c +++ b/src/smooth/ftgrays.c @@ -1854,7 +1854,7 @@ return ErrRaster_Invalid_Outline; /* if direct mode is not set, we must have a target bitmap */ - if ( (params->flags & ft_raster_flag_direct == 0) && + if ( (params->flags & ft_raster_flag_direct) == 0 && ( !target_map || !target_map->buffer ) ) return -1; @@ -1868,8 +1868,6 @@ if (target_map) ras.target = *target_map; - else - ras.target = 0; ras.render_span = (FT_Raster_Span_Func)grays_render_span; ras.render_span_data = &ras;