Browse Source

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

However, OpenGL engine is much better.
6.0.7
jean-pierre charras 4 years ago
parent
commit
928225e467
  1. 3
      gerbview/gerbview_painter.cpp

3
gerbview/gerbview_painter.cpp

@ -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

Loading…
Cancel
Save