mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Don't hide hex thread id in tooltip.
This commit is contained in:
parent
29fcddca0b
commit
53992b9b6b
@ -610,13 +610,7 @@ bool View::Draw()
|
|||||||
}
|
}
|
||||||
TextFocused( "Thread:", s_instance->m_worker.GetThreadString( data.thread ) );
|
TextFocused( "Thread:", s_instance->m_worker.GetThreadString( data.thread ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextDisabledUnformatted( "(id)" );
|
ImGui::TextDisabled( "(0x%" PRIX64 ")", data.thread );
|
||||||
if( ImGui::IsItemHovered() )
|
|
||||||
{
|
|
||||||
ImGui::BeginTooltip();
|
|
||||||
ImGui::Text( "0x%" PRIX64, data.thread );
|
|
||||||
ImGui::EndTooltip();
|
|
||||||
}
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
if( ImGui::Button( "I understand" ) )
|
if( ImGui::Button( "I understand" ) )
|
||||||
{
|
{
|
||||||
@ -4091,13 +4085,7 @@ void View::DrawZoneInfoWindow()
|
|||||||
ImGui::Text( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
|
ImGui::Text( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
|
||||||
TextFocused( "Thread:", m_worker.GetThreadString( tid ) );
|
TextFocused( "Thread:", m_worker.GetThreadString( tid ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextDisabledUnformatted( "(id)" );
|
ImGui::TextDisabled( "(0x%" PRIX64 ")", tid );
|
||||||
if( ImGui::IsItemHovered() )
|
|
||||||
{
|
|
||||||
ImGui::BeginTooltip();
|
|
||||||
ImGui::Text( "0x%" PRIX64, tid );
|
|
||||||
ImGui::EndTooltip();
|
|
||||||
}
|
|
||||||
if( ev.text.active )
|
if( ev.text.active )
|
||||||
{
|
{
|
||||||
TextFocused( "User text:", m_worker.GetString( ev.text ) );
|
TextFocused( "User text:", m_worker.GetString( ev.text ) );
|
||||||
@ -4600,13 +4588,7 @@ void View::DrawGpuInfoWindow()
|
|||||||
ImGui::Text( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
|
ImGui::Text( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
|
||||||
TextFocused( "Thread:", m_worker.GetThreadString( tid ) );
|
TextFocused( "Thread:", m_worker.GetThreadString( tid ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextDisabledUnformatted( "(id)" );
|
ImGui::TextDisabled( "(0x%" PRIX64 ")", tid );
|
||||||
if( ImGui::IsItemHovered() )
|
|
||||||
{
|
|
||||||
ImGui::BeginTooltip();
|
|
||||||
ImGui::Text( "0x%" PRIX64, tid );
|
|
||||||
ImGui::EndTooltip();
|
|
||||||
}
|
|
||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user