[raster] Signature fixes.

This commit is contained in:
Werner Lemberg 2023-05-07 20:51:32 +02:00
parent 02283a6e99
commit 6e7b1b7650
2 changed files with 12 additions and 5 deletions

View File

@ -3165,9 +3165,12 @@
static int
ft_black_new( FT_Memory memory,
black_PRaster *araster )
ft_black_new( void* memory_, /* FT_Memory */
FT_Raster *araster_ ) /* black_PRaster */
{
FT_Memory memory = (FT_Memory)memory_;
black_PRaster *araster = (black_PRaster*)araster_;
FT_Error error;
black_PRaster raster = NULL;
@ -3182,9 +3185,10 @@
static void
ft_black_done( black_PRaster raster )
ft_black_done( FT_Raster raster_ ) /* black_PRaster */
{
FT_Memory memory = (FT_Memory)raster->memory;
black_PRaster raster = (black_PRaster)raster_;
FT_Memory memory = (FT_Memory)raster->memory;
FT_FREE( raster );

View File

@ -27,8 +27,11 @@
/* initialize renderer -- init its raster */
static FT_Error
ft_raster1_init( FT_Renderer render )
ft_raster1_init( FT_Module module ) /* FT_Renderer */
{
FT_Renderer render = (FT_Renderer)module;
render->clazz->raster_class->raster_reset( render->raster, NULL, 0 );
return FT_Err_Ok;