Hi All
I've attached a patch which should give support for using wxGCDC. It is not 
finished or watertight, but it does work on my windows machine so i thought now 
was a good point to send it round to check for any platform dependant 
differences, so if someone could try it on a linux machine or a Mac that would 
be good. i think I might have broken the AGG backend with this patch but I'll 
fix that later if needed.
The only real hitch i came accross was that setting clipping regions are not 
consistent between wxGCDC and other DCs. I think this might have been cleared 
up in more recent releases and in fact the clipping method used in Plplot has 
been depreciated. Because of this some flag is needed to indicate whether a 
wxDC or a wxGCDC is being used. We therefore have the following overarching 
changes:
 
Setting backend=2 now uses the wxDC backend, but uses a wxGCDC.
I've added a backend=3 option which is an indicator that the user is going to 
pass in a wxGCDC using plcmd(PLESC_DEVINIT, gcdc)
From the command line setting backend=3 should give the same results as 
backend=2, but I must confess I haven't tested it.
We now have subpixel accuracy on points, for backends 2 and 3 which you should 
be able to see if you draw a horizontal line of 1 pixel width - if it lies on a 
pixel boundary it will have grey edges.
 
Please let me know how any tests you do go.
 
Phil

Attachment: testGCDC.patch
Description: Binary data

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to