[smooth] Don't set target in direct mode.

* src/smooth/ftsmooth.c (ft_smooth_raster_overlap): Remove assignment.
(ft_smooth_raster_lcd) [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Ditto.
This commit is contained in:
Alexei Podtelezhnikov 2020-08-28 23:08:42 -04:00
parent d8228a0070
commit 16ee2a22ab
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2020-08-25 Alexei Podtelezhnikov <apodtele@gmail.com>
[smooth] Don't set target in direct mode.
* src/smooth/ftsmooth.c (ft_smooth_raster_overlap): Remove assignment.
(ft_smooth_raster_lcd) [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Ditto.
2020-08-25 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/smooth/ftsmooth.c (ft_smooth_raster_overlap): Limit width.

View File

@ -139,7 +139,6 @@
/* Render 3 separate coverage bitmaps, shifting the outline. */
/* Set up direct rendering to record them on each third byte. */
params.target = bitmap;
params.source = outline;
params.flags = FT_RASTER_FLAG_AA | FT_RASTER_FLAG_DIRECT;
params.gray_spans = (FT_SpanFunc)ft_smooth_lcd_spans;
@ -385,7 +384,6 @@
return FT_THROW( Raster_Overflow );
/* Set up direct rendering to average oversampled spans. */
params.target = bitmap;
params.source = outline;
params.flags = FT_RASTER_FLAG_AA | FT_RASTER_FLAG_DIRECT;
params.gray_spans = (FT_SpanFunc)ft_smooth_overlap_spans;