Re: Getting a pointer to a cairo context?
Espen S Johnsen <[email protected]> 09 Apr 2008 22:09:39 +0200
| Newsgroups | gmane.lisp.clg.devel |
|---|---|
| Message-ID | <[email protected]> |
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); I hope this helps. -- Espen ------------------------------------------------------------------------- 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