Gerbview, Cairo engine: slightly better handling of negative objects.

However, OpenGL engine is much better.
This commit is contained in:
jean-pierre charras 2021-08-19 10:01:31 +02:00
parent dfacac5eb6
commit 928225e467
1 changed files with 2 additions and 1 deletions

View File

@ -258,7 +258,7 @@ void GERBVIEW_PAINTER::draw( /*const*/ GERBER_DRAW_ITEM* aItem, int aLayer )
if( aItem->IsBrightened() )
color = COLOR4D( 0.0, 1.0, 0.0, 0.75 );
m_gal->SetNegativeDrawMode( isNegative );
m_gal->SetNegativeDrawMode( isNegative && ! m_gerbviewSettings.IsShowNegativeItems() );
m_gal->SetStrokeColor( color );
m_gal->SetFillColor( color );
m_gal->SetIsFill( isFilled );
@ -426,6 +426,7 @@ void GERBVIEW_PAINTER::draw( /*const*/ GERBER_DRAW_ITEM* aItem, int aLayer )
wxASSERT_MSG( false, "GERBER_DRAW_ITEM shape is unknown!" );
break;
}
m_gal->SetNegativeDrawMode( false );
// Enable for bounding box debugging
#if 0