Right-align image name + base address in symbol view.

This commit is contained in:
Bartosz Taudul 2024-05-25 12:38:28 +02:00
parent 17b4e83ed0
commit f0d3eb1dfe
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1220,9 +1220,13 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
ImGui::SameLine();
ImGui::PopFont();
ImGui::AlignTextToFramePadding();
TextDisabledUnformatted( worker.GetString( sym->imageName ) );
ImGui::SameLine();
ImGui::TextDisabled( "0x%" PRIx64, m_baseAddr );
{
const auto imageName = worker.GetString( sym->imageName );
char tmp[1024];
snprintf( tmp, 1024, "%s 0x%" PRIx64, imageName, m_baseAddr );
ImGui::SameLine( ImGui::GetWindowContentRegionMax().x - ImGui::CalcTextSize( tmp ).x - ImGui::GetStyle().FramePadding.x * 2 );
TextDisabledUnformatted( tmp );
}
if( ImGui::IsKeyDown( ImGuiKey_Z ) ) m_childCalls = !m_childCalls;
if( ImGui::IsKeyDown( ImGuiKey_X ) ) m_propagateInlines = !m_propagateInlines;