Re: [Plplot-devel] memcairo driver fixes

2008-03-12 Thread Hazen Babcock
On Mar 12, 2008, at 7:28 PM, Doug Hunt wrote: > Hi Hazen: > > The original 'mem' driver plotted into an unsigned char array with > size > 3 x height x width (thus no alpha channel). The cairo drivers plot > into > 32 bit RGB arrays (with an alpha channel). For the memcairo driver > (as a

Re: [Plplot-devel] memcairo driver fixes

2008-03-12 Thread Doug Hunt
Hi Hazen: The original 'mem' driver plotted into an unsigned char array with size 3 x height x width (thus no alpha channel). The cairo drivers plot into 32 bit RGB arrays (with an alpha channel). For the memcairo driver (as a first cut), I just copied in the 24 bits of RGB info into the 32 b

Re: [Plplot-devel] memcairo driver fixes

2008-03-12 Thread Hazen Babcock
On Mar 12, 2008, at 11:34 AM, Doug Hunt wrote: > Hi again, Hazen, all: I just noticed that the patch I sent > contains a bug. I used malloc where I ought to have used calloc in > one place. > > Would it be possible for me to get SVN access so I can just fix > this myself? I'd also like t

Re: [Plplot-devel] memcairo driver fixes

2008-03-12 Thread Doug Hunt
Hi again, Hazen, all: I just noticed that the patch I sent contains a bug. I used malloc where I ought to have used calloc in one place. Would it be possible for me to get SVN access so I can just fix this myself? I'd also like to look into the possibility of adding optional alpha channel su

Re: [Plplot-devel] memcairo driver fixes

2008-03-10 Thread Doug Hunt
Hazen: Thanks! --Doug [EMAIL PROTECTED] Software Engineer III UCAR - COSMIC, Tel. (303) 497-2611 On Sun, 9 Mar 2008, Hazen Babcock wrote: > > On Mar 6, 2008, at 6:52 PM, Doug Hunt wrote: > >> Hi Hazen, all: I think I was able to get the memcairo driver working. >> Attached is a patch to plpl

Re: [Plplot-devel] memcairo driver fixes

2008-03-09 Thread Hazen Babcock
On Mar 6, 2008, at 6:52 PM, Doug Hunt wrote: > Hi Hazen, all: I think I was able to get the memcairo driver > working. Attached is a patch to plplot-5.9.0:drivers/cairo.c. > > The immediate problem was that the X and Y dimensions of the plot > were not correct in plD_eop_memcairo. The PLstr