diff options
author | Christian Persch <chpe@gnome.org> | 2011-12-03 19:13:18 +0100 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2011-12-03 19:13:18 +0100 |
commit | 9ab81da702fe3b86bce1724452d097712822b037 (patch) | |
tree | d9c44e56eb9e65b10e0fd125635e5a9d3869f5e7 | |
parent | f0621f3aca35df40370e8ad8c827d8a016214840 (diff) | |
download | librsvg-9ab81da702fe3b86bce1724452d097712822b037.tar.gz |
Simplify angle handling
-rw-r--r-- | rsvg-filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rsvg-filter.c b/rsvg-filter.c index 5dc59b4b..f16c3d47 100644 --- a/rsvg-filter.c +++ b/rsvg-filter.c @@ -4053,7 +4053,7 @@ get_light_colour (RsvgNodeLightSource * source, vector3 colour, base = -dotproduct (L, s); - angle = acos (base) * 180.0 / M_PI; + angle = acos (base); if (base < 0 || angle > source->limitingconeAngle) { output.x = 0; @@ -4085,7 +4085,7 @@ rsvg_node_light_source_set_atts (RsvgNode * self, if ((value = rsvg_property_bag_lookup (atts, "elevation"))) data->elevation = rsvg_css_parse_angle (value) / 180.0 * M_PI; if ((value = rsvg_property_bag_lookup (atts, "limitingConeAngle"))) - data->limitingconeAngle = rsvg_css_parse_angle (value); + data->limitingconeAngle = rsvg_css_parse_angle (value) / 180.0 * M_PI; if ((value = rsvg_property_bag_lookup (atts, "x"))) data->x = data->pointsAtX = _rsvg_css_parse_length (value); if ((value = rsvg_property_bag_lookup (atts, "y"))) |