From 23de7cb294872ed6f5998a75a8a7ea60ca830248 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 15 May 2020 01:39:14 +0200 Subject: [PATCH] Improve source file tooltip. --- server/TracySourceView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 466aae04..421a7b25 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2401,7 +2401,8 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal, lineHovered = true; if( m_font ) ImGui::PopFont(); ImGui::BeginTooltip(); - ImGui::Text( "%s:%i", fileName, srcline ); + TextFocused( "File:", fileName ); + TextFocused( "Line:", RealToString( srcline ) ); ImGui::EndTooltip(); if( m_font ) ImGui::PushFont( m_font ); if( ImGui::IsItemClicked( 0 ) || ImGui::IsItemClicked( 1 ) )