GAL canvas highlight net mode works on all layers.
This commit is contained in:
parent
dba0494b02
commit
8b8098d228
|
@ -173,18 +173,18 @@ const COLOR4D& PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer
|
||||||
netCode = conItem->GetNetCode();
|
netCode = conItem->GetNetCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Single net highlight mode
|
||||||
|
if( m_highlightEnabled && netCode == m_highlightNetcode )
|
||||||
|
return m_layerColorsHi[aLayer];
|
||||||
|
|
||||||
// Return grayish color for non-highlighted layers in the high contrast mode
|
// Return grayish color for non-highlighted layers in the high contrast mode
|
||||||
if( m_hiContrastEnabled && m_activeLayers.count( aLayer ) == 0 )
|
if( m_hiContrastEnabled && m_activeLayers.count( aLayer ) == 0 )
|
||||||
return m_hiContrastColor;
|
return m_hiContrastColor;
|
||||||
|
|
||||||
// Single net highlight mode
|
// Catch the case when highlight and high-contraste modes are enabled
|
||||||
|
// and we are drawing a not highlighted track
|
||||||
if( m_highlightEnabled )
|
if( m_highlightEnabled )
|
||||||
{
|
return m_layerColorsDark[aLayer];
|
||||||
if( netCode == m_highlightNetcode )
|
|
||||||
return m_layerColorsHi[aLayer];
|
|
||||||
else
|
|
||||||
return m_layerColorsDark[aLayer];
|
|
||||||
}
|
|
||||||
|
|
||||||
// No special modificators enabled
|
// No special modificators enabled
|
||||||
return m_layerColors[aLayer];
|
return m_layerColors[aLayer];
|
||||||
|
|
Loading…
Reference in New Issue