Don't hide hex thread id in tooltip.

This commit is contained in:
Bartosz Taudul 2019-02-23 00:34:01 +01:00
parent 29fcddca0b
commit 53992b9b6b

View File

@ -610,13 +610,7 @@ bool View::Draw()
}
TextFocused( "Thread:", s_instance->m_worker.GetThreadString( data.thread ) );
ImGui::SameLine();
TextDisabledUnformatted( "(id)" );
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::Text( "0x%" PRIX64, data.thread );
ImGui::EndTooltip();
}
ImGui::TextDisabled( "(0x%" PRIX64 ")", data.thread );
ImGui::Separator();
if( ImGui::Button( "I understand" ) )
{
@ -4091,13 +4085,7 @@ void View::DrawZoneInfoWindow()
ImGui::Text( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
TextFocused( "Thread:", m_worker.GetThreadString( tid ) );
ImGui::SameLine();
TextDisabledUnformatted( "(id)" );
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::Text( "0x%" PRIX64, tid );
ImGui::EndTooltip();
}
ImGui::TextDisabled( "(0x%" PRIX64 ")", tid );
if( ev.text.active )
{
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 );
TextFocused( "Thread:", m_worker.GetThreadString( tid ) );
ImGui::SameLine();
TextDisabledUnformatted( "(id)" );
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::Text( "0x%" PRIX64, tid );
ImGui::EndTooltip();
}
ImGui::TextDisabled( "(0x%" PRIX64 ")", tid );
ImGui::Separator();