]> granicus.if.org Git - graphviz/commitdiff
encapsulate gvdevice_* calls into gvrender functions
authorellson <devnull@localhost>
Fri, 2 Nov 2007 20:30:28 +0000 (20:30 +0000)
committerellson <devnull@localhost>
Fri, 2 Nov 2007 20:30:28 +0000 (20:30 +0000)
lib/gvc/gvrender.c

index d27bc0981f9fb124dba2721bc9597bae7384701d..02dcc082ae8791b7d9f1a1667f20b21d360d027d 100644 (file)
@@ -134,6 +134,7 @@ void gvrender_begin_job(GVJ_t * job)
     GVC_t *gvc = job->gvc;
     gvrender_engine_t *gvre = job->render.engine;
 
+    gvdevice_initialize(job);
     if (gvre) {
         if (gvre->begin_job)
            gvre->begin_job(job);
@@ -169,6 +170,7 @@ void gvrender_end_job(GVJ_t * job)
     }
 #endif
     job->gvc->common.lib = NULL;    /* FIXME - minimally this doesn't belong here */
+    gvdevice_finalize(job);
 }
 
 /* font modifiers */
@@ -343,6 +345,7 @@ void gvrender_end_page(GVJ_t * job)
            cg->end_page();
     }
 #endif
+    gvdevice_format(job);
 }
 
 void gvrender_begin_layer(GVJ_t * job)