mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +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 ) ) )
|
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x, oldOffset + ty ) ) )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
|
SmallColorBox( GetThreadColor( v->id, 0 ) );
|
||||||
|
ImGui::SameLine();
|
||||||
ImGui::TextUnformatted( m_worker.GetThreadName( v->id ) );
|
ImGui::TextUnformatted( m_worker.GetThreadName( v->id ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(%s)", RealToString( v->id, true ) );
|
ImGui::TextDisabled( "(%s)", RealToString( v->id, true ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user