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];
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<GpuEvent*>& 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 )
{