Browse Source

GAL canvas highlight net mode works on all layers.

pull/7/head
Maciej Suminski 10 years ago
parent
commit
8b8098d228
  1. 14
      pcbnew/pcb_painter.cpp

14
pcbnew/pcb_painter.cpp

@ -173,18 +173,18 @@ const COLOR4D& PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer
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
if( m_hiContrastEnabled && m_activeLayers.count( aLayer ) == 0 )
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( netCode == m_highlightNetcode )
return m_layerColorsHi[aLayer];
else
return m_layerColorsDark[aLayer];
}
return m_layerColorsDark[aLayer];
// No special modificators enabled
return m_layerColors[aLayer];

Loading…
Cancel
Save