small fix:

when in direct rendering mode, the target bitmap buffer
  is not checked..
This commit is contained in:
David Turner 2000-10-03 19:22:52 +00:00
parent 78dd7104ef
commit ec0b2cd974
1 changed files with 1 additions and 3 deletions

View File

@ -1854,7 +1854,7 @@
return ErrRaster_Invalid_Outline; return ErrRaster_Invalid_Outline;
/* if direct mode is not set, we must have a target bitmap */ /* 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 ) ) ( !target_map || !target_map->buffer ) )
return -1; return -1;
@ -1868,8 +1868,6 @@
if (target_map) if (target_map)
ras.target = *target_map; ras.target = *target_map;
else
ras.target = 0;
ras.render_span = (FT_Raster_Span_Func)grays_render_span; ras.render_span = (FT_Raster_Span_Func)grays_render_span;
ras.render_span_data = &ras; ras.render_span_data = &ras;