mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-02 10:57:59 +02:00
parent
95db5da7c6
commit
83f543a82b
1 changed files with 4 additions and 6 deletions
|
|
@ -108,8 +108,6 @@
|
|||
FT_Memory memory = library->memory;
|
||||
FT_Error error;
|
||||
|
||||
FT_ULong size_image_buffer;
|
||||
|
||||
SVG_RendererHooks hooks = svg_renderer->hooks;
|
||||
|
||||
|
||||
|
|
@ -135,10 +133,10 @@
|
|||
|
||||
ft_svg_preset_slot( (FT_Module)renderer, slot, TRUE );
|
||||
|
||||
size_image_buffer = (FT_ULong)slot->bitmap.pitch * slot->bitmap.rows;
|
||||
/* No `FT_QALLOC` here since we need a clean, empty canvas */
|
||||
/* to start with. */
|
||||
if ( FT_ALLOC( slot->bitmap.buffer, size_image_buffer ) )
|
||||
/* No `FT_QALLOC_MULT` here since we need a clean, empty canvas */
|
||||
/* to start with. */
|
||||
if ( FT_ALLOC_MULT( slot->bitmap.buffer,
|
||||
slot->bitmap.rows, slot->bitmap.pitch ) )
|
||||
return error;
|
||||
|
||||
error = hooks.render_svg( slot, &svg_renderer->state );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue