ps output for X11

This commit is contained in:
h_vogt 2010-01-17 19:06:03 +00:00
parent 86fc4beff0
commit 3959b48afb
2 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* subckt.c: .global bug by R. Larice
various files: patches by Robert (Neval, Nintegrate) from Jan 3 2010 and
10 patches from Jan 16, 2010
* com_hardcopy.c: switching graphics context correctly for postscript output
2010-01-16 Dietmar Warning
* tests/transmission: Only few tests should be easier, more examples under

View File

@ -108,10 +108,17 @@ com_hardcopy(wordlist *wl)
DevSwitch(NULL);
return;
}
/* save current graphics context */
PushGraphContext(currentgraph);
currentgraph = tempgraph;
/* some operations in gr_resize, gr_redraw, and DevSwitch
will be done on currentgraph, not only on tempgraph */
gr_resize(tempgraph);
gr_redraw(tempgraph);
DevSwitch(NULL);
/* retrieve current graphics context */
PopGraphContext();
DestroyGraph(tempgraph->graphid);
DevSwitch(NULL);
foundit = 1;
}
}