Output_lang = gvc->job->output_lang;
Output_file = gvc->job->output_file;
#endif
- gvc->codegen = &TK_CodeGen;
+ gvc->job->codegen = &TK_CodeGen;
/* emit graph in sorted order, all nodes then all edges */
emit_graph(gvc, g, EMIT_SORTED);
gvrender_delete_jobs(gvc);
/* set default margins for current output format */
dotneato_set_margins(gvc, g);
/* render graph to open GD structure */
- gvc->codegen = &memGD_CodeGen;
+ gvc->job->codegen = &memGD_CodeGen;
/* emit graph in sorted order, all nodes then all edges */
emit_graph(gvc, g, 1);
gvrender_delete_jobs(gvc);
dpi = DEFAULT_DPI;
DevScale = dpi / POINTS_PER_INCH;
- Viewport.x = gvc->width;
- Viewport.y = gvc->height;
+ Viewport.x = gvc->job->width;
+ Viewport.y = gvc->job->height;
if (Viewport.x) {
- Zoom = gvc->zoom;
- GraphFocus = gvc->focus;
+ Zoom = gvc->job->zoom;
+ GraphFocus = gvc->job->focus;
} else {
Viewport.x =
(bb.UR.x - bb.LL.x + 2 * GD_drawing(g)->margin.x) * DevScale +