From: ellson Date: Sun, 9 Mar 2008 01:15:30 +0000 (+0000) Subject: use %g format for scaling and translation X-Git-Tag: LAST_LIBGRAPH~32^2~4545 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88381fe65f767b2a7fd3ef22dc057f02579e322a;p=graphviz use %g format for scaling and translation --- diff --git a/plugin/core/gvrender_core_ps.c b/plugin/core/gvrender_core_ps.c index 20991d5db..3d63deec2 100644 --- a/plugin/core/gvrender_core_ps.c +++ b/plugin/core/gvrender_core_ps.c @@ -128,10 +128,10 @@ static void psgen_begin_page(GVJ_t * job) if (job->common->show_boxes == NULL) gvdevice_printf(job, "gsave\n%d %d %d %d boxprim clip newpath\n", pbr.LL.x, pbr.LL.y, pbr.UR.x-pbr.LL.x, pbr.UR.y-pbr.LL.y); - gvdevice_printpointf(job, job->scale); - gvdevice_printf(job, " set_scale %d rotate ", job->rotation); - gvdevice_printpointf(job, job->translation); - gvdevice_fputs(job, " translate\n"); + gvdevice_printf(job, "%g %g set_scale %d rotate %g %g translate\n", + job->scale.x, job->scale.y, + job->rotation, + job->translation.x, job->translation.y); /* Define the size of the PS canvas */ if (job->render.id == FORMAT_PS2) {