diff options
author | Hermet Park <hermetpark@gmail.com> | 2019-08-19 21:35:35 +0900 |
---|---|---|
committer | Hermet Park <hermetpark@gmail.com> | 2019-08-19 21:37:45 +0900 |
commit | ce3d1ec7e7c5574651dbf5c278356308528e2ea9 (patch) | |
tree | fe5f0741fe837faa587ce6bc669761d1ad9f59da /src | |
parent | 8f440cdedc090fd71fbda4c10bf2f4af6bafec40 (diff) | |
download | efl-ce3d1ec7e7c5574651dbf5c278356308528e2ea9.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c index 36edaabdba..82e6fc9df0 100644 --- a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c +++ b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c @@ -694,6 +694,10 @@ _parse_transformation_matrix(const char *value) } 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) { eina_matrix3_rotate(matrix, points[0] * (M_PI/180.0)); |