forked from enlightenment/efl
evas svg: fix svg spec compatibility.
Minus degree value must be transformed to the signed before Radian. It's easily tested i.e. the rotation degree is -350. @fix
This commit is contained in:
parent
30a34765d4
commit
caacd8bd67
|
@ -694,6 +694,10 @@ _parse_transformation_matrix(const char *value)
|
||||||
}
|
}
|
||||||
else if (state == SVG_MATRIX_ROTATE)
|
else if (state == SVG_MATRIX_ROTATE)
|
||||||
{
|
{
|
||||||
|
//Transform to signed.
|
||||||
|
points[0] = fmod(points[0], 360);
|
||||||
|
if (points[0] < 0) points[0] += 360;
|
||||||
|
|
||||||
if (pt_count == 1)
|
if (pt_count == 1)
|
||||||
{
|
{
|
||||||
eina_matrix3_rotate(matrix, points[0] * (M_PI/180.0));
|
eina_matrix3_rotate(matrix, points[0] * (M_PI/180.0));
|
||||||
|
|
Loading…
Reference in New Issue