mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Add zone color boxes to parent groups in find zone menu.
This commit is contained in:
parent
68bc82c11b
commit
9bc6a3e0ee
@ -8860,12 +8860,15 @@ void View::DrawFindZone()
|
||||
if( v->first == 0 )
|
||||
{
|
||||
hdrString = "<no parent>";
|
||||
SmallColorBox( 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
auto srcloc = m_worker.GetSourceLocation( int16_t( v->first ) );
|
||||
auto& srcloc = m_worker.GetSourceLocation( int16_t( v->first ) );
|
||||
hdrString = m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function );
|
||||
SmallColorBox( GetSrcLocColor( srcloc, 0 ) );
|
||||
}
|
||||
ImGui::SameLine();
|
||||
break;
|
||||
case FindZone::GroupBy::NoGrouping:
|
||||
hdrString = "Zone list";
|
||||
|
Loading…
Reference in New Issue
Block a user