void gfxtool_draw_dashed_line(gfxdrawer_t*d, gfxline_t*line, float*r, float phase)
{
double x=0,y=0;
- double linepos,nextpos;
- char on;
+ double linepos = 0,nextpos = 0;
+ char on = 0;
int apos=0;
if(line && line->type != gfx_moveTo) {
gfxbbox_t gfxbbox_expand_to_bbox(gfxbbox_t box, gfxbbox_t box2)
{
- gfxbbox_expand_to_point(box, box2.xmin, box2.ymin);
- gfxbbox_expand_to_point(box, box2.xmax, box2.ymax);
+ box = gfxbbox_expand_to_point(box, box2.xmin, box2.ymin);
+ box = gfxbbox_expand_to_point(box, box2.xmax, box2.ymax);
return box;
}
gfxline_t*l = gfxline_clone(_l);
gfxline_optimize(l);
- double x1,x2,y1,y2;
+ double x1=0,x2=0,y1=0,y2=0;
int xc=0,yc=0;
char corners=0;
gfxpoint_t xy = {line->x, line->y};
dict_put(rev, &xy, prev);
line->next = 0;
+ prev=0;
}
}
line = next;