Re: Getting a pointer to a cairo context?
Hazen Babcock <[email protected]> Wed, 9 Apr 2008 22:12:55 -0400
| Newsgroups | gmane.lisp.clg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Apr 9, 2008, at 4:09 PM, Espen S Johnsen wrote: > Hazen Babcock <[email protected]> writes: > >> My sample program follows. I only added the necessary functionality >> for this to cl-plplot and to PLplot in the last few days so >> unfortunately you'd need both the latest cl-plplot from cvs and the >> latest PLplot from svn to test this. > > My first attempt to run the sample code also resulted in a crashed > SBCL > process, due to lost X server connection. This usually happens (with > some X servers) when the path extends to far out of the current > viewport. So I expected a scaling problem and found after some > experimentation that inserting the following before the call to > rotate_cairo_surface in plD_esc_extcairo, would fix the problem: > > cairo_scale (aStream->cairoContext, 1.0 / pls->xlength, 1.0 / pls- > >ylength); It does, thanks! I really appreciate your help. It would have taken me quite some time to figure this one out on my own. -Hazen ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone