Commit 3c491067 authored by David Turner's avatar David Turner
Browse files

small fix:

  when in direct rendering mode, the target bitmap buffer
  is not checked..
parent 3ee44508
...@@ -1853,18 +1853,24 @@ ...@@ -1853,18 +1853,24 @@
outline->contours[outline->n_contours - 1] + 1 ) outline->contours[outline->n_contours - 1] + 1 )
return ErrRaster_Invalid_Outline; return ErrRaster_Invalid_Outline;
if ( !target_map || !target_map->buffer ) /* if direct mode is not set, we must have a target bitmap */
if ( (params->flags & ft_raster_flag_direct == 0) &&
( !target_map || !target_map->buffer ) )
return -1; return -1;
/* XXX: this version does not support monochrome rendering yet! */ /* this version does not support monochrome rendering */
if ( !(params->flags & ft_raster_flag_aa) ) if ( !(params->flags & ft_raster_flag_aa) )
return ErrRaster_Invalid_Mode; return ErrRaster_Invalid_Mode;
ras.outline = *outline; ras.outline = *outline;
ras.target = *target_map;
ras.num_cells = 0; ras.num_cells = 0;
ras.invalid = 1; ras.invalid = 1;
if (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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment