mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Display thread color in thread tooltip.
This commit is contained in:
parent
2872edce5d
commit
23b6e5156b
@ -2319,6 +2319,8 @@ void View::DrawZones()
|
||||
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x, oldOffset + ty ) ) )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
SmallColorBox( GetThreadColor( v->id, 0 ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::TextUnformatted( m_worker.GetThreadName( v->id ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%s)", RealToString( v->id, true ) );
|
||||
|
Loading…
Reference in New Issue
Block a user