From 807d2a02bcc8b6f328f188896b1dfeb3a9633eb7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 16 Jul 2018 01:24:43 +0200 Subject: [PATCH] Display collapsed zones counts with separators. --- server/TracyView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 71ce8775..011097b9 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1340,8 +1340,8 @@ int View::DrawZoneLevel( const Vector& vec, bool hover, double pxns, } } } - char tmp[32]; - sprintf( tmp, "%i", num ); + char tmp[64]; + sprintf( tmp, "%s", RealToString( num, true ) ); const auto tsz = ImGui::CalcTextSize( tmp ); if( tsz.x < px1 - px0 ) { @@ -1607,8 +1607,8 @@ int View::DrawGpuZoneLevel( const Vector& vec, bool hover, double pxn m_gpuEnd = ev.cpuEnd; } } - char tmp[32]; - sprintf( tmp, "%i", num ); + char tmp[64]; + sprintf( tmp, "%s", RealToString( num, true ) ); const auto tsz = ImGui::CalcTextSize( tmp ); if( tsz.x < px1 - px0 ) {