X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fdrawer.c;fp=lib%2Fdrawer.c;h=671ac84aa07b3ef2a606da6ae0c0e817c7235839;hp=c0251916a35dcc8775671666da57055d7617d777;hb=0784a8a882e7b98299fb6a90f0f9a7ebb322562b;hpb=b45b5defe54796c142c1527cff5f31bc0b572d08 diff --git a/lib/drawer.c b/lib/drawer.c index c025191..671ac84 100644 --- a/lib/drawer.c +++ b/lib/drawer.c @@ -254,7 +254,6 @@ static int approximate3(const struct cspline*s, struct qspline*q, int size, doub char left = 0,recurse=0; int t; int probes = 15; - double dx,dy; /* create simple approximation: a qspline which run's through the qspline point at 0.5 */ @@ -322,6 +321,7 @@ static int approximate3(const struct cspline*s, struct qspline*q, int size, doub /* convert control point representation to d*x^3 + c*x^2 + b*x + a */ + double dx,dy; dx= s->end.x - s->control2.x*3 + s->control1.x*3 - s->start.x; dy= s->end.y - s->control2.y*3 + s->control1.y*3 - s->start.y;