On Monday 09 Sep 2013 11:51:41 Alan W. Irwin wrote:
> On 2013-09-09 08:59+0200 Arjen Markus wrote:
> > - the xcairo device produces samller graphs for some reason and it
> > 
> >   does not take the -display command line argument (whereas the xwin
> >   device does). Something to be repaired, I'd say. I had to use the
> >   DISPLAY environment variable instead.
> > 
> > (I do not have a window manager running yet, so the windows are created
> > full-screen)
> 
> Just to give some quick background, src/plargs.c shows the -display
> option is implemented using the same code as the -o option so like
> that option it sets pls->FileName to whatever string (e.g., ":0.0")
> the user specifies after -display.  Then the xwin.c code uses
> pls->FileName (if set) to set the display.
> 
> @Hazen: would you be able to do something similar for the xcairo device
> comfortably before the release date on September 28th?
> 
> It appears to me that "Display" in drivers/cairo.c is set to NULL to
> start with so it might be trivial to use pls->FileName instead.
> However, there are a number of uses of "Display" in drivers/cairo.c so
> someone more familiar with that code than I am should implement this
> "would be nice" feature for the xcairo device.

Hazen - Don't worry, I've done it. Essentially a 1-line fix. I've also changed 
the code so failure to open the display will exit plplot immediately. The old 
behaviour led to a crash if an invalid display was set.

Arjen - Please check this works for you.

Andrew

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to