@ -69,7 +69,7 @@ void PCB_RENDER_SETTINGS::ImportLegacyColors( COLORS_DESIGN_SETTINGS* aSettings
// Default colors for specific layers
m_layerColors [ ITEM_GAL_LAYER ( VIAS_HOLES_VISIBLE ) ] = COLOR4D ( 0.5 , 0.4 , 0.0 , 1.0 ) ;
m_layerColors [ ITEM_GAL_LAYER ( PADS_HOLES_VISIBLE ) ] = COLOR4D ( 0.0 , 0.5 , 0.5 , 1.0 ) ;
m_layerColors [ ITEM_GAL_LAYER ( VIAS _VISIBLE ) ] = COLOR4D ( 0.7 , 0.7 , 0.7 , 1.0 ) ;
m_layerColors [ ITEM_GAL_LAYER ( VIA_THROUGH _VISIBLE ) ] = COLOR4D ( 0.7 , 0.7 , 0.7 , 1.0 ) ;
m_layerColors [ ITEM_GAL_LAYER ( PADS_VISIBLE ) ] = COLOR4D ( 0.7 , 0.7 , 0.7 , 1.0 ) ;
m_layerColors [ NETNAMES_GAL_LAYER ( PADS_NETNAMES_VISIBLE ) ] = COLOR4D ( 0.8 , 0.8 , 0.8 , 0.7 ) ;
m_layerColors [ NETNAMES_GAL_LAYER ( PAD_FR_NETNAMES_VISIBLE ) ] = COLOR4D ( 0.8 , 0.8 , 0.8 , 0.7 ) ;
@ -94,9 +94,9 @@ void PCB_RENDER_SETTINGS::LoadDisplayOptions( const DISPLAY_OPTIONS& aOptions )
m_padNumbers = aOptions . DisplayPadNum ;
// Whether to draw tracks, vias & pads filled or as outlines
m_sketchModeSelect [ PADS_VISIBLE ] = ! aOptions . DisplayPadFill ;
m_sketchModeSelect [ VIAS_VISIBLE ] = ! aOptions . DisplayViaFill ;
m_sketchModeSelect [ TRACKS_VISIBLE ] = ! aOptions . DisplayPcbTrackFill ;
m_sketchModeSelect [ PADS_VISIBLE ] = ! aOptions . DisplayPadFill ;
m_sketchModeSelect [ VIA_THROUGH_VISIBLE ] = ! aOptions . DisplayViaFill ;
m_sketchModeSelect [ TRACKS_VISIBLE ] = ! aOptions . DisplayPcbTrackFill ;
switch ( aOptions . DisplayNetNamesMode )
{
@ -328,7 +328,7 @@ void PCB_PAINTER::draw( const SEGVIA* aVia, int aLayer )
double radius ;
// Choose drawing settings depending on if we are drawing via's pad or hole
if ( aLayer = = ITEM_GAL_LAYER ( VIAS _VISIBLE ) )
if ( aLayer = = ITEM_GAL_LAYER ( VIA_THROUGH _VISIBLE ) )
{
radius = aVia - > GetWidth ( ) / 2.0 ;
}
@ -341,7 +341,7 @@ void PCB_PAINTER::draw( const SEGVIA* aVia, int aLayer )
const COLOR4D & color = m_pcbSettings - > GetColor ( aVia , aLayer ) ;
if ( m_pcbSettings - > m_sketchModeSelect [ VIAS _VISIBLE ] )
if ( m_pcbSettings - > m_sketchModeSelect [ VIA_THROUGH _VISIBLE ] )
{
// Outline mode
m_gal - > SetIsFill ( false ) ;