diff options
author | scuri <scuri> | 2010-05-28 00:12:50 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-05-28 00:12:50 +0000 |
commit | c342fa4c3480daedd9580082c07cb6ad2b35a6ef (patch) | |
tree | d2f50cf8ceabcbe4e898126cf8fb9e5f5b94e555 /src/drv/cddxf.c | |
parent | b13afc2e6f0811cc14532c4f1060bc73b6053df4 (diff) |
*** empty log message ***
Diffstat (limited to 'src/drv/cddxf.c')
-rw-r--r-- | src/drv/cddxf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drv/cddxf.c b/src/drv/cddxf.c index f8c9a28..c5d0df5 100644 --- a/src/drv/cddxf.c +++ b/src/drv/cddxf.c @@ -683,6 +683,7 @@ static void cdarc (cdCtxCanvas *ctxcanvas, int xc, int yc, int w, int h, double bulge = calc_bulge (a, b, t, t+seg_angle); /* and t+seg_angle and write */ writevertex (ctxcanvas, xc, yc, a, b, t, bulge); /* vertex at t */ } + writevertex (ctxcanvas, xc, yc, a, b, t2, 0); /* bulge of last vertex is useless */ fprintf ( ctxcanvas->file, "0\n" ); @@ -731,12 +732,15 @@ static void cdsector (cdCtxCanvas *ctxcanvas, int xc, int yc, int w, int h, doub if ((a2-a1) != 360) writevertex (ctxcanvas, xc, yc, 0, 0, 0, 0); /* center */ + for (i=0, t=t1; i<nseg; i++, t+=seg_angle) { /* calculate bulge between t */ bulge = calc_bulge (a, b, t, t+seg_angle); /* and t+seg_angle and write */ writevertex (ctxcanvas, xc, yc, a, b, t, bulge); /* vertex at t */ } + writevertex (ctxcanvas, xc, yc, a, b, t2, 0); /* bulge of last vertex is useless */ + if ((a2-a1) != 360) writevertex (ctxcanvas, xc, yc, 0, 0, 0, 0); /* center */ |