diff options
Diffstat (limited to 'src/drv/cdcgm.c')
-rw-r--r-- | src/drv/cdcgm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/drv/cdcgm.c b/src/drv/cdcgm.c index 2791c24..3049818 100644 --- a/src/drv/cdcgm.c +++ b/src/drv/cdcgm.c @@ -513,24 +513,24 @@ static void settextbbox (cdCtxCanvas *ctxcanvas, double x, double y, int width, } } -static void cdtext(cdCtxCanvas *ctxcanvas, int x, int y, const char *s) +static void cdtext(cdCtxCanvas *ctxcanvas, int x, int y, const char *s, int len) { int width, height; - cgm_text( ctxcanvas->cgm, 1 /* final */ , (double)x, (double)y, s ); + cgm_text( ctxcanvas->cgm, 1 /* final */ , (double)x, (double)y, s, len ); - cdgettextsizeEX(ctxcanvas, s, &width, &height); + cdgettextsizeEX(ctxcanvas, s, len, &width, &height); settextbbox (ctxcanvas, (double) x, (double) y, width, height ); } -static void cdftext(cdCtxCanvas *ctxcanvas, double x, double y, const char *s) +static void cdftext(cdCtxCanvas *ctxcanvas, double x, double y, const char *s, int len) { int width, height; - cgm_text( ctxcanvas->cgm, 1 /* final */ , x, y, s ); + cgm_text( ctxcanvas->cgm, 1 /* final */ , x, y, s, len); - cdgettextsizeEX(ctxcanvas, s, &width, &height); + cdgettextsizeEX(ctxcanvas, s, len, &width, &height); settextbbox (ctxcanvas, x, y, width, height ); } |