|
From: <hez...@us...> - 2010-03-14 15:44:55
|
Revision: 10866
http://plplot.svn.sourceforge.net/plplot/?rev=10866&view=rev
Author: hezekiahcarty
Date: 2010-03-14 15:44:48 +0000 (Sun, 14 Mar 2010)
Log Message:
-----------
If the background is transparent, use a white under-layer
This fixes the "bleeding through" of previous plot pages when using the
xcairo driver.
Modified Paths:
--------------
trunk/drivers/cairo.c
Modified: trunk/drivers/cairo.c
===================================================================
--- trunk/drivers/cairo.c 2010-03-14 06:55:16 UTC (rev 10865)
+++ trunk/drivers/cairo.c 2010-03-14 15:44:48 UTC (rev 10866)
@@ -376,6 +376,11 @@
/* Fill in the window with the background color. */
cairo_rectangle( aStream->cairoContext, 0.0, 0.0, pls->xlength, pls->ylength );
+ if ( (double) pls->cmap0[0].a < 1.0 )
+ {
+ cairo_set_source_rgba( aStream->cairoContext, 1.0, 1.0, 1.0, 1.0 );
+ cairo_fill_preserve( aStream->cairoContext );
+ }
cairo_set_source_rgba( aStream->cairoContext,
(double) pls->cmap0[0].r / 255.0,
(double) pls->cmap0[0].g / 255.0,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|