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:
89a0063
)
fixed line stroke width
author
kramm
<kramm>
Thu, 21 Aug 2008 13:38:33 +0000
(13:38 +0000)
committer
kramm
<kramm>
Thu, 21 Aug 2008 13:38:33 +0000
(13:38 +0000)
lib/devices/render.c
patch
|
blob
|
history
diff --git
a/lib/devices/render.c
b/lib/devices/render.c
index
b8dc813
..
19c0dbf
100644
(file)
--- a/
lib/devices/render.c
+++ b/
lib/devices/render.c
@@
-566,7
+566,7
@@
void render_stroke(struct _gfxdevice*dev, gfxline_t*line, gfxcoord_t width, gfxc
} else if(line->type == gfx_lineTo) {
double x1=x*i->zoom,y1=y*i->zoom;
double x3=line->x*i->zoom,y3=line->y*i->zoom;
} else if(line->type == gfx_lineTo) {
double x1=x*i->zoom,y1=y*i->zoom;
double x3=line->x*i->zoom,y3=line->y*i->zoom;
- add_solidline(dev, x1, y1, x3, y3, width * i->multiply);
+ add_solidline(dev, x1, y1, x3, y3, width * i->zoom);
fill_solid(dev, color);
} else if(line->type == gfx_splineTo) {
int t,parts;
fill_solid(dev, color);
} else if(line->type == gfx_splineTo) {
int t,parts;
@@
-587,7
+587,7
@@
void render_stroke(struct _gfxdevice*dev, gfxline_t*line, gfxcoord_t width, gfxc
double nx = (double)(t*t*x3 + 2*t*(parts-t)*x2 + (parts-t)*(parts-t)*x1)/(double)(parts*parts);
double ny = (double)(t*t*y3 + 2*t*(parts-t)*y2 + (parts-t)*(parts-t)*y1)/(double)(parts*parts);
double nx = (double)(t*t*x3 + 2*t*(parts-t)*x2 + (parts-t)*(parts-t)*x1)/(double)(parts*parts);
double ny = (double)(t*t*y3 + 2*t*(parts-t)*y2 + (parts-t)*(parts-t)*y1)/(double)(parts*parts);
- add_solidline(dev, xx, yy, nx, ny, width * i->multiply);
+ add_solidline(dev, xx, yy, nx, ny, width * i->zoom);
fill_solid(dev, color);
xx = nx;
yy = ny;
fill_solid(dev, color);
xx = nx;
yy = ny;