|
From: <hez...@us...> - 2010-03-18 20:23:56
|
Revision: 10874
http://plplot.svn.sourceforge.net/plplot/?rev=10874&view=rev
Author: hezekiahcarty
Date: 2010-03-18 20:23:49 +0000 (Thu, 18 Mar 2010)
Log Message:
-----------
Fix transparent backgrounds for the pngcairo device
Modified Paths:
--------------
trunk/drivers/cairo.c
Modified: trunk/drivers/cairo.c
===================================================================
--- trunk/drivers/cairo.c 2010-03-18 19:33:34 UTC (rev 10873)
+++ trunk/drivers/cairo.c 2010-03-18 20:23:49 UTC (rev 10874)
@@ -2288,7 +2288,7 @@
/* Create a new cairo surface & context for PNG file. */
/* Dimension units are pixels from cairo documentation. */
- aStream->cairoSurface = cairo_image_surface_create( CAIRO_FORMAT_RGB24, (double) pls->xlength, (double) pls->ylength );
+ aStream->cairoSurface = cairo_image_surface_create( CAIRO_FORMAT_ARGB32, (double) pls->xlength, (double) pls->ylength );
aStream->cairoContext = cairo_create( aStream->cairoSurface );
/* Invert the surface so that the graphs are drawn right side up. */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|