mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Simplify condition.
This commit is contained in:
parent
c2b4e81493
commit
44bb5d474b
@ -213,26 +213,23 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
else if( external != 0 )
|
||||
{
|
||||
if( external != 0 )
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::PushFont( m_smallFont );
|
||||
TextDisabledUnformatted( "external" );
|
||||
ImGui::TableNextColumn();
|
||||
if( external == 1 )
|
||||
{
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::PushFont( m_smallFont );
|
||||
TextDisabledUnformatted( "external" );
|
||||
ImGui::TableNextColumn();
|
||||
if( external == 1 )
|
||||
{
|
||||
TextDisabledUnformatted( "1 frame" );
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::TextDisabled( "%i frames", external );
|
||||
}
|
||||
ImGui::PopFont();
|
||||
external = 0;
|
||||
TextDisabledUnformatted( "1 frame" );
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::TextDisabled( "%i frames", external );
|
||||
}
|
||||
ImGui::PopFont();
|
||||
external = 0;
|
||||
}
|
||||
|
||||
ImGui::TableNextRow();
|
||||
|
Loading…
Reference in New Issue
Block a user