From 201a40fb048a9749ccec7153268da8777503aa1e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 29 Jun 2018 18:41:06 +0200 Subject: [PATCH] Improve readability of callstack tooltips. --- server/TracyView.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index bf03b622..f60180ba 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -5904,14 +5904,16 @@ void View::CallstackTooltip( uint32_t idx ) int fidx = 0; for( auto& entry : cs ) { + ImGui::TextDisabled( "%i.", fidx++ ); + ImGui::SameLine(); auto frame = m_worker.GetCallstackFrame( entry ); if( !frame ) { - ImGui::Text( "%i. 0x%" PRIX64, fidx++, entry ); + ImGui::Text( "0x%" PRIX64, entry ); } else { - ImGui::Text( "%i. %s", fidx++, m_worker.GetString( frame->name ) ); + ImGui::Text( "%s", m_worker.GetString( frame->name ) ); } } ImGui::EndTooltip();