Disabled translucency in printouts as it is not supported by cairo

This commit is contained in:
Maciej Suminski 2018-10-09 12:21:37 +02:00
parent 262a105416
commit 7ab8171422
1 changed files with 6 additions and 1 deletions

View File

@ -119,7 +119,12 @@ void BOARD_PRINTOUT::DrawPage( const wxString& aLayerName, int aPageNum, int aPa
else // color enabled
{
for( int i = 0; i < LAYER_ID_COUNT; ++i )
dstSettings->SetLayerColor( i, srcSettings->GetLayerColor( i ) );
{
// Cairo does not support translucent colors on PostScript surfaces
// see 'Features support by the PostScript surface' on
// ttps://www.cairographics.org/documentation/using_the_postscript_surface/
dstSettings->SetLayerColor( i, srcSettings->GetLayerColor( i ).WithAlpha( 1.0 ) );
}
}