From: <hba...@us...> - 2007-08-16 03:51:52
|
Revision: 7806 http://plplot.svn.sourceforge.net/plplot/?rev=7806&view=rev Author: hbabcock Date: 2007-08-15 20:51:50 -0700 (Wed, 15 Aug 2007) Log Message: ----------- Added support for the -ori option. Commented out text clipping for the time being. Modified Paths: -------------- trunk/drivers/cairo.c Modified: trunk/drivers/cairo.c =================================================================== --- trunk/drivers/cairo.c 2007-08-16 03:19:06 UTC (rev 7805) +++ trunk/drivers/cairo.c 2007-08-16 03:51:50 UTC (rev 7806) @@ -344,8 +344,8 @@ cairo_save(aStream->cairoContext); // Setup the clipping region - cairo_rectangle(aStream->cairoContext, DOWNSCALE * pls->clpxmi, DOWNSCALE * pls->clpymi, DOWNSCALE * (pls->clpxma - pls->clpxmi), DOWNSCALE * (pls->clpyma - pls->clpymi)); - cairo_clip(aStream->cairoContext); + // cairo_rectangle(aStream->cairoContext, DOWNSCALE * pls->clpxmi, DOWNSCALE * pls->clpymi, DOWNSCALE * (pls->clpxma - pls->clpxmi), DOWNSCALE * (pls->clpyma - pls->clpymi)); + // cairo_clip(aStream->cairoContext); // Move to the string reference point cairo_move_to(aStream->cairoContext, DOWNSCALE * (double) args->x, DOWNSCALE * (double) args->y); @@ -358,6 +358,7 @@ // Extract rotation angle and shear from the PLplot tranformation matrix. // Compute sines and cosines of the angles as an optimization. plRotationShear(args->xform, &rotation, &shear); + rotation -= pls->diorot * 3.14159 / 2.0; cos_rot = cos(rotation); sin_rot = sin(rotation); tan_shear = tan(shear); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |