Use fixed-width font to draw addresses.

This commit is contained in:
Bartosz Taudul 2023-01-05 22:20:56 +01:00
parent ecb4a0527a
commit 006bfeaf56
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -724,6 +724,7 @@ void View::ListMemData( std::vector<const MemEvent*>& vec, std::function<void(co
auto v = vec[i];
const auto arrIdx = std::distance( mem.data.begin(), v );
ImGui::PushFont( m_fixedFont );
if( m_memoryAllocInfoPool == pool && m_memoryAllocInfoWindow == arrIdx )
{
ImGui::PushStyleColor( ImGuiCol_Text, ImVec4( 1.f, 0.f, 0.f, 1.f ) );
@ -739,6 +740,7 @@ void View::ListMemData( std::vector<const MemEvent*>& vec, std::function<void(co
m_memoryAllocInfoPool = pool;
}
}
ImGui::PopFont();
if( ImGui::IsItemClicked( 2 ) )
{
ZoomToRange( v->TimeAlloc(), v->TimeFree() >= 0 ? v->TimeFree() : m_worker.GetLastTime() );