1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-07 07:33:51 +00:00

Improve source file tooltip.

This commit is contained in:
Bartosz Taudul 2020-05-15 01:39:14 +02:00
parent 03c3a3e7c7
commit 23de7cb294

View File

@ -2401,7 +2401,8 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal,
lineHovered = true; lineHovered = true;
if( m_font ) ImGui::PopFont(); if( m_font ) ImGui::PopFont();
ImGui::BeginTooltip(); ImGui::BeginTooltip();
ImGui::Text( "%s:%i", fileName, srcline ); TextFocused( "File:", fileName );
TextFocused( "Line:", RealToString( srcline ) );
ImGui::EndTooltip(); ImGui::EndTooltip();
if( m_font ) ImGui::PushFont( m_font ); if( m_font ) ImGui::PushFont( m_font );
if( ImGui::IsItemClicked( 0 ) || ImGui::IsItemClicked( 1 ) ) if( ImGui::IsItemClicked( 0 ) || ImGui::IsItemClicked( 1 ) )