Add different highlight for zones selected on histogram.

This commit is contained in:
Bartosz Taudul 2019-09-07 15:33:11 +02:00
parent 57a2b62edc
commit 0b1a6047f6

View File

@ -11704,6 +11704,14 @@ uint32_t View::GetZoneColor( const ZoneEvent& ev )
{
if( m_findZone.show && !m_findZone.match.empty() && m_findZone.match[m_findZone.selMatch] == ev.SrcLoc() )
{
if( m_findZone.highlight.active )
{
const auto zt = m_worker.GetZoneEnd( ev ) - ev.Start();
if( zt >= m_findZone.highlight.start && zt <= m_findZone.highlight.end )
{
return 0xFFFFCC66;
}
}
return 0xFF229999;
}
else