1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-03 22:13:51 +00:00

Display collapsed zones counts with separators.

This commit is contained in:
Bartosz Taudul 2018-07-16 01:24:43 +02:00
parent acf3bc7d43
commit 807d2a02bc

View File

@ -1340,8 +1340,8 @@ int View::DrawZoneLevel( const Vector<ZoneEvent*>& vec, bool hover, double pxns,
} }
} }
} }
char tmp[32]; char tmp[64];
sprintf( tmp, "%i", num ); sprintf( tmp, "%s", RealToString( num, true ) );
const auto tsz = ImGui::CalcTextSize( tmp ); const auto tsz = ImGui::CalcTextSize( tmp );
if( tsz.x < px1 - px0 ) if( tsz.x < px1 - px0 )
{ {
@ -1607,8 +1607,8 @@ int View::DrawGpuZoneLevel( const Vector<GpuEvent*>& vec, bool hover, double pxn
m_gpuEnd = ev.cpuEnd; m_gpuEnd = ev.cpuEnd;
} }
} }
char tmp[32]; char tmp[64];
sprintf( tmp, "%i", num ); sprintf( tmp, "%s", RealToString( num, true ) );
const auto tsz = ImGui::CalcTextSize( tmp ); const auto tsz = ImGui::CalcTextSize( tmp );
if( tsz.x < px1 - px0 ) if( tsz.x < px1 - px0 )
{ {