[base,ot-svg] Minor fixes.

* src/svg/ftsvg.c (ft_svg_transform) Bug fix. Warning fix.

* src/base/ftglyph.c (ft_svg_glyph_transform) Warning fix.
This commit is contained in:
Moazin Khatti 2019-08-23 18:39:36 +05:00
parent 561364002a
commit 3325b42e91
2 changed files with 5 additions and 4 deletions

View File

@ -397,8 +397,8 @@
{
FT_SvgGlyph glyph = (FT_SvgGlyph)svg_glyph;
FT_Matrix* matrix = _matrix;
FT_Vector* delta = _delta;
FT_Matrix* matrix = (FT_Matrix*)_matrix;
FT_Vector* delta = (FT_Vector*)_delta;
FT_Matrix tmp_matrix;
FT_Vector tmp_delta;

View File

@ -210,8 +210,8 @@
{
FT_SVG_Document doc = (FT_SVG_Document)slot->other;
FT_Matrix* matrix = _matrix;
FT_Vector* delta = _delta;
FT_Matrix* matrix = (FT_Matrix*)_matrix;
FT_Vector* delta = (FT_Vector*)_delta;
FT_Matrix tmp_matrix;
FT_Vector tmp_delta;
FT_Matrix a, b;
@ -230,6 +230,7 @@
{
tmp_delta.x = 0;
tmp_delta.y = 0;
delta = &tmp_delta;
}
a = doc->transform;