]> granicus.if.org Git - graphviz/commitdiff
use %g format for scaling and translation
authorellson <devnull@localhost>
Sun, 9 Mar 2008 01:15:30 +0000 (01:15 +0000)
committerellson <devnull@localhost>
Sun, 9 Mar 2008 01:15:30 +0000 (01:15 +0000)
plugin/core/gvrender_core_ps.c

index 20991d5db0ea202fdaf9ea3dacdf09367f9313d9..3d63deec25c71f4d8a9503b0b1a734d2c001eded 100644 (file)
@@ -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) {