diff options
author | David Turner <david@freetype.org> | 2000-10-03 19:22:52 +0000 |
---|---|---|
committer | David Turner <david@freetype.org> | 2000-10-03 19:22:52 +0000 |
commit | ec0b2cd97441c99021be80044f159b8b090dfb57 (patch) | |
tree | 7c775ec25ae7dd8e4d357bdb1a04e1565ed34fa6 /src/smooth | |
parent | 78dd7104ef2419d742d89ae897f99d8fe06d4685 (diff) | |
download | freetype2-ec0b2cd97441c99021be80044f159b8b090dfb57.tar.gz |
small fix:
when in direct rendering mode, the target bitmap buffer
is not checked..
Diffstat (limited to 'src/smooth')
-rw-r--r-- | src/smooth/ftgrays.c | 4 |
1 files changed, 1 insertions, 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; |