From debc9599032c7036006ec124f4ef8f44b8935568 Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 17 Jun 2010 19:32:24 +0000 Subject: *** empty log message *** --- src/drv/cdps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/drv/cdps.c') diff --git a/src/drv/cdps.c b/src/drv/cdps.c index 37bdef6..08d6ba7 100644 --- a/src/drv/cdps.c +++ b/src/drv/cdps.c @@ -1454,7 +1454,7 @@ static void cdfpoly(cdCtxCanvas *ctxcanvas, int mode, cdfPoint* poly, int n) static int cdlinestyle(cdCtxCanvas *ctxcanvas, int style) { - double mm = (72.0/25.4) / ctxcanvas->scale; + double mm = ctxcanvas->canvas->xres; if (ctxcanvas->debug) fprintf(ctxcanvas->file, "\n%%cdLineStyle %d Begin\n", style); @@ -1479,9 +1479,9 @@ static int cdlinestyle(cdCtxCanvas *ctxcanvas, int style) break; case CD_CUSTOM : { - int i; + int i; /* size here is in pixels, do not use mm */ for (i = 0; i < ctxcanvas->canvas->line_dashes_count; i++) - fprintf(ctxcanvas->file, "%g ", ctxcanvas->canvas->line_dashes[i]*mm); + fprintf(ctxcanvas->file, "%g ", (double)ctxcanvas->canvas->line_dashes[i]); } break; } -- cgit v1.2.3