Improve readability of callstack tooltips.

This commit is contained in:
Bartosz Taudul 2018-06-29 18:41:06 +02:00
parent 400ee1c752
commit 201a40fb04

View File

@ -5904,14 +5904,16 @@ void View::CallstackTooltip( uint32_t idx )
int fidx = 0; int fidx = 0;
for( auto& entry : cs ) for( auto& entry : cs )
{ {
ImGui::TextDisabled( "%i.", fidx++ );
ImGui::SameLine();
auto frame = m_worker.GetCallstackFrame( entry ); auto frame = m_worker.GetCallstackFrame( entry );
if( !frame ) if( !frame )
{ {
ImGui::Text( "%i. 0x%" PRIX64, fidx++, entry ); ImGui::Text( "0x%" PRIX64, entry );
} }
else else
{ {
ImGui::Text( "%i. %s", fidx++, m_worker.GetString( frame->name ) ); ImGui::Text( "%s", m_worker.GetString( frame->name ) );
} }
} }
ImGui::EndTooltip(); ImGui::EndTooltip();