Display frame number, if there's space for it.

This commit is contained in:
Bartosz Taudul 2020-07-11 14:05:08 +02:00
parent 0977952bde
commit 0f9597aee8

View File

@ -2170,6 +2170,13 @@ bool View::DrawZoneFrames( const FrameData& frames )
auto tx = ImGui::CalcTextSize( buf ).x;
uint32_t color = ( frames.name == 0 && i == 0 ) ? redColor : activeColor;
if( fsz - 7 <= tx )
{
static char tmp[256];
sprintf( tmp, "%i (%s)", i, TimeToString( ftime ) );
buf = tmp;
tx = ImGui::CalcTextSize( buf ).x;
}
if( fsz - 7 <= tx )
{
buf = TimeToString( ftime );