From 9360b5a8955f83338e90c1b4589da7538dc139a1 Mon Sep 17 00:00:00 2001 From: ellson Date: Mon, 17 Jan 2005 15:06:13 +0000 Subject: [PATCH] fix refs to job struct --- tclpkg/tcldot/tcldot.c | 4 ++-- tclpkg/tcldot/tkgen.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tclpkg/tcldot/tcldot.c b/tclpkg/tcldot/tcldot.c index ad0930834..d3f278a48 100644 --- a/tclpkg/tcldot/tcldot.c +++ b/tclpkg/tcldot/tcldot.c @@ -1120,7 +1120,7 @@ static int graphcmd(ClientData clientData, Tcl_Interp * interp, 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); @@ -1163,7 +1163,7 @@ static int graphcmd(ClientData clientData, Tcl_Interp * interp, /* 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); diff --git a/tclpkg/tcldot/tkgen.c b/tclpkg/tcldot/tkgen.c index c3c15fda6..7502bb86b 100644 --- a/tclpkg/tcldot/tkgen.c +++ b/tclpkg/tcldot/tkgen.c @@ -195,11 +195,11 @@ static void tk_begin_graph(GVC_t * gvc, graph_t * g, box bb, point pb) 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 + -- 2.40.0