Skip to content

Commit 006bfea

Browse files
committed
Use fixed-width font to draw addresses.
1 parent ecb4a05 commit 006bfea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎server/TracyView_Memory.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ void View::ListMemData( std::vector<const MemEvent*>& vec, std::function<void(co
724724
auto v = vec[i];
725725
const auto arrIdx = std::distance( mem.data.begin(), v );
726726

727+
ImGui::PushFont( m_fixedFont );
727728
if( m_memoryAllocInfoPool == pool && m_memoryAllocInfoWindow == arrIdx )
728729
{
729730
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
739740
m_memoryAllocInfoPool = pool;
740741
}
741742
}
743+
ImGui::PopFont();
742744
if( ImGui::IsItemClicked( 2 ) )
743745
{
744746
ZoomToRange( v->TimeAlloc(), v->TimeFree() >= 0 ? v->TimeFree() : m_worker.GetLastTime() );

0 commit comments

Comments
 (0)