git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added support for conics.
[swftools.git]
/
lib
/
drawer.c
diff --git
a/lib/drawer.c
b/lib/drawer.c
index
0fc4307
..
ccd3fea
100644
(file)
--- a/
lib/drawer.c
+++ b/
lib/drawer.c
@@
-84,6
+84,14
@@
void draw_string(drawer_t*draw, const char*string)
to.y = atoi(getToken(&p));
draw->splineTo(draw, &mid, &to);
}
to.y = atoi(getToken(&p));
draw->splineTo(draw, &mid, &to);
}
+ else if(!strncmp(token, "conicTo", 5)) {
+ FPOINT mid,to;
+ mid.x = atoi(getToken(&p));
+ mid.y = atoi(getToken(&p));
+ to.x = atoi(getToken(&p));
+ to.y = atoi(getToken(&p));
+ draw_conicTo(draw, &mid, &to);
+ }
else if(!strncmp(token, "cubicTo", 5)) {
FPOINT mid1,mid2,to;
mid1.x = atoi(getToken(&p));
else if(!strncmp(token, "cubicTo", 5)) {
FPOINT mid1,mid2,to;
mid1.x = atoi(getToken(&p));