diff options
Diffstat (limited to 'cd/src/drv/cdcgm.c')
-rwxr-xr-x | cd/src/drv/cdcgm.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/cd/src/drv/cdcgm.c b/cd/src/drv/cdcgm.c index ab47c1e..19f6ad7 100755 --- a/cd/src/drv/cdcgm.c +++ b/cd/src/drv/cdcgm.c @@ -566,6 +566,12 @@ static void cdpoly(cdCtxCanvas *ctxcanvas, int mode, cdPoint* poly, int n) case CD_FILL: cgm_polygon( ctxcanvas->cgm, n, fpoly); break; + case CD_BEZIER: + cdfSimPolyBezier(ctxcanvas->canvas, (cdfPoint*)fpoly, n); + break; + case CD_PATH: + cdfSimPolyPath(ctxcanvas->canvas, (cdfPoint*)fpoly, n); + break; } free(fpoly); @@ -595,6 +601,12 @@ static void cdfpoly(cdCtxCanvas *ctxcanvas, int mode, cdfPoint* poly, int n) case CD_FILL: cgm_polygon( ctxcanvas->cgm, n, fpoly); break; + case CD_BEZIER: + cdfSimPolyBezier(ctxcanvas->canvas, poly, n); + break; + case CD_PATH: + cdfSimPolyPath(ctxcanvas->canvas, poly, n); + break; } } @@ -1122,7 +1134,7 @@ static cdContext cdCGMContext = CD_CAP_LINECAP | CD_CAP_LINEJOIN | CD_CAP_REGION | CD_CAP_CHORD | CD_CAP_FONTDIM | CD_CAP_TEXTSIZE | CD_CAP_IMAGERGBA | CD_CAP_GETIMAGERGB | - CD_CAP_TEXTORIENTATION), + CD_CAP_TEXTORIENTATION | CD_CAP_PATH | CD_CAP_BEZIER), 0, cdcreatecanvas, cdinittable, |