git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3520d10
)
added comment.
author
kramm
<kramm>
Fri, 8 Oct 2004 19:33:38 +0000
(19:33 +0000)
committer
kramm
<kramm>
Fri, 8 Oct 2004 19:33:38 +0000
(19:33 +0000)
lib/drawer.c
patch
|
blob
|
history
diff --git
a/lib/drawer.c
b/lib/drawer.c
index
1b4f7e9
..
bf8f5cd
100644
(file)
--- a/
lib/drawer.c
+++ b/
lib/drawer.c
@@
-236,6
+236,9
@@
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 */
+
+ /* FIXME: we need to do this for the subspline between [start,end],
+ not [0,1] */
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;