diff options
author | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2011-02-26 10:06:45 -0500 |
---|---|---|
committer | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2011-02-26 10:06:45 -0500 |
commit | ab27bf593669f69b4ac54982edf1ddc76f66ddc2 (patch) | |
tree | abb9610dcdc1f7b0f8c971b016b5137f04857f9d | |
parent | 76656ee5e7a82ac7757b90c1d62e15803c7e67d4 (diff) |
Remove designated initializers
-rw-r--r-- | src/cairo-spline-offset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-spline-offset.c b/src/cairo-spline-offset.c index 62e6db1b..9cd73a68 100644 --- a/src/cairo-spline-offset.c +++ b/src/cairo-spline-offset.c @@ -281,11 +281,11 @@ inflection_points (knots_t s) { inflection_points_t ret; - point_t a = {x: -s.a.x + 3*s.b.x - 3*s.c.x + s.d.x, -s.a.y + 3*s.b.y - 3*s.c.y + s.d.y}; - point_t b = {x: 3*s.a.x - 6*s.b.x + 3*s.c.x, 3*s.a.y - 6*s.b.y + 3*s.c.y}; - point_t c = {x:-3*s.a.x + 3*s.b.x, -3*s.a.y + 3*s.b.y}; + point_t a = { -s.a.x + 3*s.b.x - 3*s.c.x + s.d.x, -s.a.y + 3*s.b.y - 3*s.c.y + s.d.y}; + point_t b = { 3*s.a.x - 6*s.b.x + 3*s.c.x, 3*s.a.y - 6*s.b.y + 3*s.c.y}; + point_t c = {-3*s.a.x + 3*s.b.x, -3*s.a.y + 3*s.b.y}; /* we don't need 'd' - point_t d = {x: s.a.x, s.a.y}; + point_t d = { s.a.x, s.a.y}; */ /* we're solving for the roots of this equation: |