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
(parent:
47f4e05
)
fixed circle drawing
author
kramm
<kramm>
Sun, 19 Jun 2005 10:56:40 +0000
(10:56 +0000)
committer
kramm
<kramm>
Sun, 19 Jun 2005 10:56:40 +0000
(10:56 +0000)
lib/drawer.c
patch
|
blob
|
history
diff --git
a/lib/drawer.c
b/lib/drawer.c
index
a7c336e
..
329daa8
100644
(file)
--- a/
lib/drawer.c
+++ b/
lib/drawer.c
@@
-124,10
+124,11
@@
void draw_string(drawer_t*draw, const char*string)
}
else if(!strncmp(token, "circle", 6)) {
int mx,my,r;
- double r2 = 0.70710678118654757*r;
+ double r2;
mx = atof(getToken(&p));
my = atof(getToken(&p));
r = atof(getToken(&p));
+ r2 = 0.70710678118654757*r;
draw_moveTo2(draw, mx, my-r);
draw_conicTo2(draw, mx+r2, my-r2, mx+r, my);
draw_conicTo2(draw, mx+r2, my+r2, mx, my+r);