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:
parent
03c3a3e7c7
commit
23de7cb294
@ -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 ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user