mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Add different highlight for zones selected on histogram.
This commit is contained in:
parent
57a2b62edc
commit
0b1a6047f6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user